Conditionalize include of string.h in rx_stats.c
authorMarc Dionne <marc.c.dionne@gmail.com>
Sun, 3 Oct 2010 00:32:05 +0000 (20:32 -0400)
committerDerrick Brashear <shadow@dementia.org>
Sun, 3 Oct 2010 02:40:46 +0000 (19:40 -0700)
Linux doesn't have <string.h>, it's in the linux subdirectory.  But
it is already included by sysincludes.h, so it should not be needed
here.

Change-Id: I017c374e7b6d47e900ec73b40a36183a3f23f35c
Reviewed-on: http://gerrit.openafs.org/2888
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

src/rx/rx_stats.c

index a51a972..5c22ab6 100644 (file)
@@ -31,7 +31,9 @@
 #include <afsconfig.h>
 #include <afs/param.h>
 
+#if !defined(KERNEL)
 #include <string.h>
+#endif
 
 #include "rx.h"
 #include "rx_atomic.h"