summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsrinivas%netscape.com <devnull@localhost>1999-09-14 19:39:46 +0000
committersrinivas%netscape.com <devnull@localhost>1999-09-14 19:39:46 +0000
commit552981834c1882895a0dfa3e12ab260c98b1ab5c (patch)
treef7719351d429e721b177c1f91ca9d95f5f54d1cc
parentf2131381ccb25cb8ed3a019ee3944e991ec1a606 (diff)
downloadnspr-hg-552981834c1882895a0dfa3e12ab260c98b1ab5c.tar.gz
Define __STRICT_ANSI__ for Linux to eliminate spurious warnings. Checkin
for Chris Seawood <cls@seawood.org>.
-rw-r--r--pr/include/prinet.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/pr/include/prinet.h b/pr/include/prinet.h
index 3d40920e..440352ed 100644
--- a/pr/include/prinet.h
+++ b/pr/include/prinet.h
@@ -41,7 +41,10 @@
#define prinet_h__
#if defined(XP_UNIX) || defined(XP_OS2) || defined(XP_BEOS)
-
+#ifdef linux
+#undef __STRICT_ANSI__
+#define __STRICT_ANSI__
+#endif
#include <sys/types.h>
#include <sys/socket.h> /* AF_INET */
#include <netinet/in.h> /* INADDR_ANY, ..., ntohl(), ... */