]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
fix-includes-20060315
authorJim Rees <rees@umich.edu>
Wed, 15 Mar 2006 19:32:49 +0000 (19:32 +0000)
committerJim Rees <rees@umich.edu>
Wed, 15 Mar 2006 19:32:49 +0000 (19:32 +0000)
Now that we include arpa/inet.h, also include its prerequisites,
and fix the ordering.

src/util/afsutil.h

index d70c6a2d1555d975a7b402eb308175a335d79dfc..e697403eacacf00a40444de36aac56f739ff9dad 100644 (file)
 
 /* logging defines
  */
+#ifndef AFS_NT40_ENV
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+#include <arpa/inet.h> /* for inet_ntoa() */
+#endif
+
 #include <stdio.h>
 #include <stdarg.h>
+
 extern int LogLevel;
 extern int mrafsStyleLogs;
 #ifndef AFS_NT40_ENV
 extern int serverLogSyslog;
 extern int serverLogSyslogFacility;
 extern char *serverLogSyslogTag;
-#include <arpa/inet.h> /* for inet_ntoa() */
 #endif
 extern void vFSLog(const char *format, va_list args);
 extern void SetLogThreadNumProgram(int (*func) () );