]> Savannah Git Hosting - gnulib.git/commitdiff
select: Fix "warning: no previous prototype for function".
authorBruno Haible <bruno@clisp.org>
Sat, 5 Sep 2020 21:45:47 +0000 (23:45 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 5 Sep 2020 21:45:47 +0000 (23:45 +0200)
* lib/select.c: Include <sys/select.h>.

ChangeLog
lib/select.c

index 2edba65cb1eb53ab1e51468fde878534cd4729b2..3698ba011d80c82242e5b152211ca7fe9e76da44 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2020-09-05  Bruno Haible  <bruno@clisp.org>
+
+       select: Fix "warning: no previous prototype for function".
+       * lib/select.c: Include <sys/select.h>.
+
 2020-09-05  Bruno Haible  <bruno@clisp.org>
 
        Use module 'c99' when needed for variadic macros with '...' syntax.
index b2234ea33426cc74771e294c1e2be3a8e84cc328..1122fdeb730787205dea11abb74b51fcf348388a 100644 (file)
    with this program; if not, see <https://www.gnu.org/licenses/>.  */
 
 #include <config.h>
-#include <alloca.h>
-#include <assert.h>
+
+/* Specification.  */
+#include <sys/select.h>
 
 #if defined _WIN32 && ! defined __CYGWIN__
 /* Native Windows.  */
 
+#include <alloca.h>
+#include <assert.h>
 #include <sys/types.h>
 #include <errno.h>
 #include <limits.h>
@@ -553,7 +556,6 @@ restart:
 
 #else /* ! Native Windows.  */
 
-#include <sys/select.h>
 #include <stddef.h> /* NULL */
 #include <errno.h>
 #include <unistd.h>