From 162d72429bfa527c6279911d31333a76c0b45501 Mon Sep 17 00:00:00 2001 From: Per Cederqvist <ceder@lysator.liu.se> Date: Tue, 15 Jul 2003 12:39:05 +0000 Subject: [PATCH] Include <string.h> to get rid of a warning on AIX 4.3. Include <strings.h> to get rid of a warning on AIX 4.3. Signed-off-by: Magnus Holmgren <magnus@kibibyte.se> --- glib.c | 8 ++++++++ select.c | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/glib.c b/glib.c index d2b785e..cabc381 100644 --- a/glib.c +++ b/glib.c @@ -18,6 +18,14 @@ #include <poll.h> #endif +#ifdef HAVE_STRING_H +# include <string.h> /* Needed on NetBSD1.1/SPARC due to bzero/FD_ZERO. */ +#endif + +#ifdef HAVE_STRINGS_H +# include <strings.h> /* Needed on AIX 4.2 due to bzero/FD_ZERO. */ +#endif + static int use_count = 0; static oop_source_sys *sys; static oop_adapter_select *sel; diff --git a/select.c b/select.c index edf48a6..c838b20 100644 --- a/select.c +++ b/select.c @@ -8,6 +8,14 @@ #include <assert.h> +#ifdef HAVE_STRING_H +# include <string.h> /* Needed on NetBSD1.1/SPARC due to bzero/FD_ZERO. */ +#endif + +#ifdef HAVE_STRINGS_H +# include <strings.h> /* Needed on AIX 4.2 due to bzero/FD_ZERO. */ +#endif + struct select_set { fd_set rfd,wfd,xfd; }; -- GitLab