avoid-string-h-conflict-in-kernel-rx-20010612
authorDerrick Brashear <shadow@dementia.org>
Wed, 13 Jun 2001 04:56:22 +0000 (04:56 +0000)
committerDerrick Brashear <shadow@dementia.org>
Wed, 13 Jun 2001 04:56:22 +0000 (04:56 +0000)
avoid conflicting with kernel's string.h

src/rx/rx.c
src/rx/rx_misc.c
src/rx/rx_packet.c
src/rx/rx_rdwr.c

index f87a06c..4509653 100644 (file)
@@ -83,6 +83,12 @@ extern afs_int32 afs_termState;
 # 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"
@@ -92,12 +98,6 @@ extern afs_int32 afs_termState;
 # 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;
index c469d9c..452715e 100644 (file)
@@ -26,7 +26,6 @@
 #include "rx.h"
 #endif /* AFS_PTHREAD_ENV */
 #include <stdlib.h>
-#endif
 #ifdef HAVE_STRING_H
 #include <string.h>
 #endif
@@ -36,7 +35,7 @@
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #endif
-
+#endif
 
 /*
  * We currently only include below the errors that
index 8c89d3b..4e3a4f6 100644 (file)
@@ -72,7 +72,6 @@
 #include "rx_globals.h"
 #include <lwp.h>
 #include "rx_internal.h"
-#endif /* KERNEL */
 #ifdef HAVE_STRING_H
 #include <string.h>
 #endif
@@ -82,7 +81,7 @@
 #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#. */
index cd54781..358c396 100644 (file)
 # 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#. */