fix-includes-20060315

Now that we include arpa/inet.h, also include its prerequisites,
and fix the ordering.
This commit is contained in:
Jim Rees 2006-03-15 19:32:49 +00:00
parent c6203bc67e
commit a9102a89f0

View File

@ -22,15 +22,22 @@
/* logging defines /* 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 <stdio.h>
#include <stdarg.h> #include <stdarg.h>
extern int LogLevel; extern int LogLevel;
extern int mrafsStyleLogs; extern int mrafsStyleLogs;
#ifndef AFS_NT40_ENV #ifndef AFS_NT40_ENV
extern int serverLogSyslog; extern int serverLogSyslog;
extern int serverLogSyslogFacility; extern int serverLogSyslogFacility;
extern char *serverLogSyslogTag; extern char *serverLogSyslogTag;
#include <arpa/inet.h> /* for inet_ntoa() */
#endif #endif
extern void vFSLog(const char *format, va_list args); extern void vFSLog(const char *format, va_list args);
extern void SetLogThreadNumProgram(int (*func) () ); extern void SetLogThreadNumProgram(int (*func) () );