[pacman-dev] [PATCH] For Apple

Warren Noronha wnorrix at gmail.com
Fri Dec 2 02:11:29 EST 2005


I got this from the opendarwin project, it seems that it manages to  
compile the ftp lib but fails on other things., debugging one step at  
a time

- Warren


--- webpublish/ftplib.c.old	Sun Feb  8 13:58:50 2004
+++ webpublish/ftplib.c	Sun Feb  8 13:59:13 2004
@@ -32,7 +32,7 @@
  #include <string.h>
  #include <errno.h>
  #include <ctype.h>
-#if defined(__unix__)
+#if defined(__unix__) || defined(__APPLE__)
  #include <sys/time.h>
  #include <sys/types.h>
  #include <sys/socket.h>
@@ -91,7 +91,7 @@

  GLOBALDEF int ftplib_debug = 0;

-#if defined(__unix__) || defined(VMS)
+#if defined(__unix__) || defined(VMS) || defined(__APPLE__)
  #define net_read read
  #define net_write write
  #define net_close close


--- webpublish/ftplib.h.old	Sun Feb  8 13:41:22 2004
+++ webpublish/ftplib.h	Sun Feb  8 13:42:04 2004
@@ -24,7 +24,7 @@
  #if !defined(__FTPLIB_H)
  #define __FTPLIB_H

-#if defined(__unix__) || defined(VMS)
+#if defined(__unix__) || defined(VMS) || defined(__APPLE__)
  #define GLOBALDEF
  #define GLOBALREF extern
  #elif defined(_WIN32)





More information about the pacman-dev mailing list