1) conditionally include asm/byteorder.h
authorewt <devnull@localhost>
Wed, 25 Sep 1996 19:13:59 +0000 (19:13 +0000)
committerewt <devnull@localhost>
Wed, 25 Sep 1996 19:13:59 +0000 (19:13 +0000)
2) include netinet/in.h

CVS patchset: 1047
CVS date: 1996/09/25 19:13:59

lib/header.c

index b0457e1..ba0f011 100644 (file)
@@ -7,12 +7,16 @@
 /* Data read from file descriptors is expected to be in          */
 /* network byte order and is converted on the fly to host order. */
 
+#ifdef HAVE_ASM_BYTEORDER_H
+# include <asm/byteorder.h>
+#endif
+
 #include <stdlib.h>
-#include <asm/byteorder.h>
 #include <ctype.h>
 #include <malloc.h>
 #include <string.h>
 #include <unistd.h>
+#include <netinet/in.h>
 
 #include "header.h"
 #include "rpmlib.h"            /* necessary only for dumpHeader() */