Include string.h, for memset.
authorBruno Haible <bruno@clisp.org>
Mon, 24 Aug 2009 08:41:48 +0000 (10:41 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 24 Aug 2009 08:41:48 +0000 (10:41 +0200)
ChangeLog
lib/dup3.c

index efac0df..21e02a2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2009-08-23  Bruno Haible  <bruno@clisp.org>
 
+       * lib/dup3.c: Include <string.h>.
+
+2009-08-23  Bruno Haible  <bruno@clisp.org>
+
        * lib/dup3.c (dup3): Test only once whether the system actually exists.
        * lib/pipe2.c (pipe2): Likewise.
        Suggested by Eric Blake.
index 906594e..f730e81 100644 (file)
@@ -29,6 +29,8 @@
 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
 /* Native Woe32 API.  */
 
+# include <string.h>
+
 /* Get declarations of the Win32 API functions.  */
 # define WIN32_LEAN_AND_MEAN
 # include <windows.h>