]> git.ipfire.org Git - thirdparty/git.git/commitdiff
git-compat-util.h: remove redundant code
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>
Mon, 23 Feb 2015 00:07:14 +0000 (00:07 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 23 Feb 2015 02:56:23 +0000 (18:56 -0800)
Since commit 3a0a3a89 ("git-compat-util.h: don't define _XOPEN_SOURCE
on cygwin", 23-11-2014) removed the definition of _XOPEN_SOURCE on
cygwin, the code within a pre-processor conditional further down the
file became redundant. Remove the redundant code.

This effectively reverts commit 41b20017 ("Fix an "implicit function
definition" warning", 03-03-2007).

Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-compat-util.h

index 0347fe4bf105f5cd78c9b3582ebabf1b3722dad1..2dbb6a75a4425bc2c2878ed5e6d9a699c7cbb167 100644 (file)
 typedef long intptr_t;
 typedef unsigned long uintptr_t;
 #endif
-#if defined(__CYGWIN__)
-#undef _XOPEN_SOURCE
-#include <grp.h>
-#define _XOPEN_SOURCE 600
-#else
 #undef _ALL_SOURCE /* AIX 5.3L defines a struct list with _ALL_SOURCE. */
 #include <grp.h>
 #define _ALL_SOURCE 1
 #endif
-#endif
 
 /* used on Mac OS X */
 #ifdef PRECOMPOSE_UNICODE