]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Bug #614 Changed dup_fd to move_fd and remove for Windows
authorDanny Mayer <mayer@ntp.org>
Sun, 21 May 2006 16:10:13 +0000 (12:10 -0400)
committerDanny Mayer <mayer@ntp.org>
Sun, 21 May 2006 16:10:13 +0000 (12:10 -0400)
bk: 447090e5HDtb_g-zr3bAsC5AeeLwxA

ntpd/ntp_io.c

index cd571f242b256d8d9c498cd0ce526c87c0eb997b..72c57f663d551613a6543237d5ce75af3473df80 100644 (file)
@@ -149,8 +149,8 @@ static      void    close_socket    P((SOCKET));
 #ifdef REFCLOCK
 static void    close_file      P((SOCKET));
 #endif
-#ifdef F_DUPFD
-static int     dup_fd          P((int));
+#if !defined(SYS_WINNT) && defined(F_DUPFD)
+static int     move_fd         P((int));
 #ifndef FOPEN_MAX
 #define FOPEN_MAX      20
 #endif
@@ -248,8 +248,8 @@ connection_reset_fix(SOCKET fd) {
 }
 #endif
 
-#ifdef F_DUPFD
-static int dup_fd(int fd)
+#if !defined(SYS_WINNT) && defined(F_DUPFD)
+static int move_fd(int fd)
 {
        int tmp, newfd;
         /*
@@ -1515,7 +1515,7 @@ open_socket(
         * Fixup the file descriptor for some systems
         * See bug #530 for details of the issue.
         */
-       fd = dup_fd(fd);
+       fd = move_fd(fd);
 #endif
 
        /*