From d829ccea3d25ce1f7ec4514d1735c26182b3beff Mon Sep 17 00:00:00 2001 From: Niels Provos Date: Fri, 30 Jul 2004 05:00:44 +0000 Subject: [PATCH] fix a warning on freebsd; svn:r114 --- kqueue.c | 2 +- test/regress.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/kqueue.c b/kqueue.c index 49bbced4..a17e69bb 100644 --- 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 diff --git a/test/regress.c b/test/regress.c index 7adffff3..6d2c5a91 100644 --- a/test/regress.c +++ b/test/regress.c @@ -535,9 +535,9 @@ main (int argc, char **argv) WORD wVersionRequested; WSADATA wsaData; int err; - + wVersionRequested = MAKEWORD( 2, 2 ); - + err = WSAStartup( wVersionRequested, &wsaData ); #endif -- 2.40.0