summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authoriwasaki <iwasaki@FreeBSD.org>2001-01-10 19:28:03 +0000
committeriwasaki <iwasaki@FreeBSD.org>2001-01-10 19:28:03 +0000
commitaf68207f908ac95ff866cbe7bb6dc1a02a0ddc53 (patch)
tree6a1f05c768112026f2566c0a2f1b6914fb4b4920 /sys
parent71db84399169a86b71e939d6bbbdc1f327366ba4 (diff)
downloadFreeBSD-src-af68207f908ac95ff866cbe7bb6dc1a02a0ddc53.zip
FreeBSD-src-af68207f908ac95ff866cbe7bb6dc1a02a0ddc53.tar.gz
Disable strstr() if ACPICA is compiled in userland.
Reviewed by: msmith
Diffstat (limited to 'sys')
-rw-r--r--sys/contrib/dev/acpica/Subsystem/Include/acfreebsd.h2
-rw-r--r--sys/contrib/dev/acpica/acfreebsd.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/sys/contrib/dev/acpica/Subsystem/Include/acfreebsd.h b/sys/contrib/dev/acpica/Subsystem/Include/acfreebsd.h
index f60ae88..23ff5ce 100644
--- a/sys/contrib/dev/acpica/Subsystem/Include/acfreebsd.h
+++ b/sys/contrib/dev/acpica/Subsystem/Include/acfreebsd.h
@@ -173,6 +173,7 @@ strupr(char *str)
return(str);
}
+#ifdef _KERNEL
/* Or strstr (used in debugging mode, also move to libkern) */
static __inline char *
strstr(char *s, char *find)
@@ -192,5 +193,6 @@ strstr(char *s, char *find)
}
return ((char *)s);
}
+#endif /* _KERNEL */
#endif /* __ACFREEBSD_H__ */
diff --git a/sys/contrib/dev/acpica/acfreebsd.h b/sys/contrib/dev/acpica/acfreebsd.h
index f60ae88..23ff5ce 100644
--- a/sys/contrib/dev/acpica/acfreebsd.h
+++ b/sys/contrib/dev/acpica/acfreebsd.h
@@ -173,6 +173,7 @@ strupr(char *str)
return(str);
}
+#ifdef _KERNEL
/* Or strstr (used in debugging mode, also move to libkern) */
static __inline char *
strstr(char *s, char *find)
@@ -192,5 +193,6 @@ strstr(char *s, char *find)
}
return ((char *)s);
}
+#endif /* _KERNEL */
#endif /* __ACFREEBSD_H__ */
OpenPOWER on IntegriCloud