[PATCH] Include <strings.h> on Solaris for bzero definition
Alan Coopersmith
alan.coopersmith at oracle.com
Sat Feb 25 10:29:49 PST 2012
SVR4 OS'es put the ANSI standard funcs (memcpy, memset, etc) in <string.h>
and the BSD compatibility funcs (bcopy, bzero, etc) in <strings.h>
If you look in <X11/Xos.h> you'll see other OS'es needed this as well
in the past, but Solaris is the only one of those libxkbcommon is being
ported to.
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
---
src/XKBcommonint.h | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/XKBcommonint.h b/src/XKBcommonint.h
index def7224..1a25b4e 100644
--- a/src/XKBcommonint.h
+++ b/src/XKBcommonint.h
@@ -29,6 +29,9 @@ authorization from the authors.
#include <stdlib.h>
#include <string.h>
+#ifdef __sun
+#include <strings.h>
+#endif
#ifndef True
#define True 1
--
1.7.3.2
More information about the xorg-devel
mailing list