--- PDFlib-Lite-5.0.1-Unix-src/libs/pdcore/pc_file.c.orig	Sun Aug  3 06:59:44 2003
+++ PDFlib-Lite-5.0.1-Unix-src/libs/pdcore/pc_file.c	Sun Aug  3 07:00:05 2003
@@ -737,4 +737,22 @@
 
     outbuf[i] = 0;
 }
+#ifdef PDF_TARGET_API_MAC_CARBON
+OSStatus
+FSPathMakeFSSpec(const UInt8 *path, FSSpec *spec)
+{
+OSStatus result;
+FSRef ref;
 
+/* convert the POSIX path to an FSRef */
+result = FSPathMakeRef(path, &ref, NULL);
+
+if (result != noErr)
+return result;
+
+/* and then convert the FSRef to an FSSpec */
+result = FSGetCatalogInfo(&ref, kFSCatInfoNone, NULL, NULL, spec, NULL);
+
+return result;
+}
+#endif