The following patch I had to add to the OpenPKG package for GeoIP 1.0.10
(see http://cvs.openpkg.org/openpkg-src/geoip/geoip.spec) in order to
make it compile on non-Linux platforms. You accidently used gzFile also
for a plain FILE and hence fileno() and others horribly break on it.
Please incorporate this into your sources for GeoIP 1.0.11. Thanks.

--- libGeoIP/GeoIPUpdate.c.orig Mon Oct 28 06:06:13 2002
+++ libGeoIP/GeoIPUpdate.c      Tue Oct 29 08:57:03 2002
@@ -28,6 +28,7 @@
 #include "zlib.h"
 #include "time.h"
 #include <netdb.h>
+#include <stdio.h>
 #include <sys/file.h>
 
 /*
@@ -73,7 +74,8 @@
        char *uncompr = NULL, *compr;
        unsigned long comprLen;
        FILE * comp_fh, * cur_db_fh;
-       gzFile gz_fh, gi_fh;
+       gzFile gz_fh;
+       FILE *gi_fh;
        char * file_path_gz;
        MD5_CTX context;
        unsigned char buffer[1024], digest[16];

                                       Ralf S. Engelschall
                                       [EMAIL PROTECTED]
                                       www.engelschall.com
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
Developer Communication List                   [EMAIL PROTECTED]

Reply via email to