summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwtc%netscape.com <devnull@localhost>1999-02-06 17:25:17 +0000
committerwtc%netscape.com <devnull@localhost>1999-02-06 17:25:17 +0000
commitb377cb09e6864e7a458303f5f40faefe07ab2a38 (patch)
treed77ad306d5f5b9b4f1eaaef85ffc434227840570
parent1a963e6e1730ba57e462382c8386386666efe52a (diff)
downloadnspr-hg-b377cb09e6864e7a458303f5f40faefe07ab2a38.tar.gz
Added struct declarations to eliminate compiler warnings from
<arpa/inet.h> on AIX 4.3. Thanks to Waqar Malik <waqar@netscpe.com> for the bug report.
-rw-r--r--pr/include/prinet.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/pr/include/prinet.h b/pr/include/prinet.h
index 5c89180d..36cdb2ff 100644
--- a/pr/include/prinet.h
+++ b/pr/include/prinet.h
@@ -49,8 +49,18 @@
#include <sys/ioctl.h>
#endif
#ifdef XP_UNIX
+#ifdef AIX
+/*
+ * On AIX 4.3, the header <arpa/inet.h> refers to struct
+ * ether_addr and struct sockaddr_dl that are not declared.
+ * The following struct declarations eliminate the compiler
+ * warnings.
+ */
+struct ether_addr;
+struct sockaddr_dl;
+#endif /* AIX */
#include <arpa/inet.h>
-#endif
+#endif /* XP_UNIX */
#include <netdb.h>
#if defined(FREEBSD) || defined(BSDI) || defined(QNX)