avoid conflicting with kernel's string.h
# include <netinet/in.h>
# include <sys/time.h>
#endif
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
# include "rx.h"
# include "rx_user.h"
# include "rx_clock.h"
# include "rx_internal.h"
# include <afs/rxgen_consts.h>
#endif /* KERNEL */
-#ifdef HAVE_STRING_H
-#include <string.h>
-#endif
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
int (*registerProgram)() = 0;
int (*swapNameProgram)() = 0;
#include "rx.h"
#endif /* AFS_PTHREAD_ENV */
#include <stdlib.h>
-#endif
#ifdef HAVE_STRING_H
#include <string.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
-
+#endif
/*
* We currently only include below the errors that
#include "rx_globals.h"
#include <lwp.h>
#include "rx_internal.h"
-#endif /* KERNEL */
#ifdef HAVE_STRING_H
#include <string.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
-
+#endif /* KERNEL */
#ifdef RX_LOCKS_DB
/* rxdb_fileID is used to identify the lock location, along with line#. */
# include <sys/stat.h>
# include <sys/time.h>
#endif
-# include "rx_user.h"
-# include "rx_clock.h"
-# include "rx_queue.h"
-# include "rx.h"
-# include "rx_globals.h"
-# include "rx_internal.h"
-#endif /* KERNEL */
#ifdef HAVE_STRING_H
#include <string.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
-
+# include "rx_user.h"
+# include "rx_clock.h"
+# include "rx_queue.h"
+# include "rx.h"
+# include "rx_globals.h"
+# include "rx_internal.h"
+#endif /* KERNEL */
#ifdef RX_LOCKS_DB
/* rxdb_fileID is used to identify the lock location, along with line#. */