summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--lib/dup3.c14
2 files changed, 5 insertions, 14 deletions
diff --git a/ChangeLog b/ChangeLog
index 14b02e18d8..eb233f6061 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2011-04-30 Bruno Haible <bruno@clisp.org>
+ dup3: cleanup
+ * lib/dup3.c: Remove old code, leftover from 2009-12-16.
+
+2011-04-30 Bruno Haible <bruno@clisp.org>
+
netdb: Make it work in C++ mode.
* lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
(getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
diff --git a/lib/dup3.c b/lib/dup3.c
index 2f87da6167..7525142d7f 100644
--- a/lib/dup3.c
+++ b/lib/dup3.c
@@ -26,20 +26,6 @@
#include "binary-io.h"
-#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>
-
-/* Upper bound on getdtablesize(). See lib/getdtablesize.c. */
-# define OPEN_MAX_MAX 0x10000
-
-#endif
-
int
dup3 (int oldfd, int newfd, int flags)
{