[PATCH 2/2] syndaemon.c: Add #include <string.h>

Alan Coopersmith alan.coopersmith at oracle.com
Sun Jan 16 12:57:15 PST 2011


Solaris FD_ZERO is defined using memset, but <sys/select.h> doesn't include
<string.h> itself, leading to compiler warning:

"syndaemon.c", line 404: warning: implicit function declaration: memset

Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
---
 tools/syndaemon.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/tools/syndaemon.c b/tools/syndaemon.c
index 0309fb5..944c34e 100644
--- a/tools/syndaemon.c
+++ b/tools/syndaemon.c
@@ -38,6 +38,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <sys/types.h>
 #include <unistd.h>
 #include <signal.h>
-- 
1.7.3.2



More information about the xorg-devel mailing list