Skip to content

Commit 2f0cd84

Browse files
committed
Avoid warning if HAVE_DUP is redefined
1 parent 0f39305 commit 2f0cd84

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/os_unix.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,9 @@ int mch_rename __ARGS((const char *src, const char *dest));
563563
# endif
564564
#endif
565565

566-
#define HAVE_DUP /* have dup() */
566+
#ifndef HAVE_DUP
567+
# define HAVE_DUP /* have dup() */
568+
#endif
567569
#define HAVE_ST_MODE /* have stat.st_mode */
568570

569571
/* We have three kinds of ACL support. */

0 commit comments

Comments
 (0)