projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Oops, fix ANSI C syntax error introduced in last patch.
[gnulib.git]
/
lib
/
dup2.c
diff --git
a/lib/dup2.c
b/lib/dup2.c
index
d934da1
..
8894481
100644
(file)
--- a/
lib/dup2.c
+++ b/
lib/dup2.c
@@
-1,5
+1,6
@@
/* Duplicate an open file descriptor to a specified file descriptor.
/* Duplicate an open file descriptor to a specified file descriptor.
- Copyright (C) 1999, 2004 Free Software Foundation, Inc.
+
+ Copyright (C) 1999, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-17,18
+18,14
@@
/* written by Paul Eggert */
/* written by Paul Eggert */
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
+#include <config.h>
-#include <errno.h>
+/* Specification. */
+#include <unistd.h>
+#include <errno.h>
#include <fcntl.h>
#include <fcntl.h>
-#if HAVE_UNISTD_H
-# include <unistd.h>
-#endif
-
#ifndef F_DUPFD
static int
dupfd (int fd, int desired_fd)
#ifndef F_DUPFD
static int
dupfd (int fd, int desired_fd)