From a7982f61a1c485f7ea7dd6660b9c87d505ac9c47 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 30 Apr 2011 17:22:37 +0200 Subject: [PATCH] dup3: cleanup * lib/dup3.c: Remove old code, leftover from 2009-12-16. --- ChangeLog | 5 +++++ lib/dup3.c | 14 -------------- 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/ChangeLog b/ChangeLog index 14b02e18d..eb233f606 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2011-04-30 Bruno Haible + dup3: cleanup + * lib/dup3.c: Remove old code, leftover from 2009-12-16. + +2011-04-30 Bruno Haible + 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 2f87da616..7525142d7 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 - -/* Get declarations of the Win32 API functions. */ -# define WIN32_LEAN_AND_MEAN -# include - -/* Upper bound on getdtablesize(). See lib/getdtablesize.c. */ -# define OPEN_MAX_MAX 0x10000 - -#endif - int dup3 (int oldfd, int newfd, int flags) { -- 2.11.0