]> granicus.if.org Git - libevent/commitdiff
fix a warning on freebsd;
authorNiels Provos <provos@gmail.com>
Fri, 30 Jul 2004 05:00:44 +0000 (05:00 +0000)
committerNiels Provos <provos@gmail.com>
Fri, 30 Jul 2004 05:00:44 +0000 (05:00 +0000)
svn:r114

kqueue.c
test/regress.c

index 49bbced4a6788a425f06d8e48b276e8d7694ba91..a17e69bbd8de9c1d5e5d30a9dc923daa513d5e57 100644 (file)
--- a/kqueue.c
+++ b/kqueue.c
@@ -56,7 +56,7 @@
 #define log_error      warn
 #endif
 
-#if defined(HAVE_INTTYPES_H) && !defined(__OpenBSD__)
+#if defined(HAVE_INTTYPES_H) && !defined(__OpenBSD__) && !defined(__FreeBSD__)
 #define INTPTR(x)      (intptr_t)x
 #else
 #define INTPTR(x)      x
index 7adffff36abc04e61ee793c28c392cdbe059ef95..6d2c5a91b01197a5862b1ec2b4d350983910f414 100644 (file)
@@ -535,9 +535,9 @@ main (int argc, char **argv)
        WORD wVersionRequested;
        WSADATA wsaData;
        int     err;
+
        wVersionRequested = MAKEWORD( 2, 2 );
+
        err = WSAStartup( wVersionRequested, &wsaData );
 #endif