Fix _XOPEN_SOURCE problem on DragonFly
PATCH 1/1 Fix _XOPEN_SOURCE problem on DragonFly
Hi.
DragonFly has the same problem that FreeBSD used to have. Since the return value of implicitly declared functions defaults to int, it can cause disasters on architectures where sizeof(int) < sizeof(void *). The patch below should address this issue.
Best regards,
YONETANI Tomokazu.
git-compat-util.h +2 -1
@@ -55,7 +55,8 @@# else # define _XOPEN_SOURCE 500# endif -#elif !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__USLC__) && !defined(_M_UNIX) && !defined(sgi) +#elif !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__USLC__) && \ + !defined(_M_UNIX) && !defined(sgi) && !defined(__DragonFly__)#define _XOPEN_SOURCE 600/* glibc2 and AIX 5.3L need 500, OpenBSD needs 600 for S_ISLNK() */ #define _XOPEN_SOURCE_EXTENDED 1/* AIX 5.3L needs this */ #endif
Hello.
Is there anything else I need to do to get this in?
Quoted 23 lines · YONETANI Tomokazu
Hi.
DragonFly has the same problem that FreeBSD used to have. Since the return value of implicitly declared functions defaults to int, it can cause disasters on architectures where sizeof(int) <sizeof(void *). The patch below should address this issue.Best regards,
YONETANI Tomokazu.git-compat-util.h +2
-1@@ -55,7 +55,8 @@# else # define _XOPEN_SOURCE 500# endif -#elif !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__USLC__) && !defined(_M_UNIX) && !defined(sgi) +#elif !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__USLC__) && \ + !defined(_M_UNIX) && !defined(sgi) && !defined(__DragonFly__)#define _XOPEN_SOURCE 600/* glibc2 and AIX 5.3L need 500, OpenBSD needs 600 for S_ISLNK() */ #define _XOPEN_SOURCE_EXTENDED 1/* AIX 5.3L needs this */ #endif
Hi,
Quoted 2 lines · YONETANI Tomokazu
Hello.
Is there anything else I need to do to get this in?
you should read Documentation/SubmittingPatches:
http://github.com/git/git/blob/HEAD/Documentation/SubmittingPatches
Briefly,
1. Generate your patch with git-format-patch.
2. s-o-b.
Signature · 2 lines
Cheers, Ray Chuan
Quoted 6 lines · Tay Ray Chuan
Quoted 2 lines · YONETANI Tomokazu
Hello.
Is there anything else I need to do to get this in?you should read
Documentation/SubmittingPatches:
Quoted 7 lines
http://github.com/git/git/blob/HEAD/Documentation/SubmittingPatches
Briefly,
1. Generate your patch with git-format-patch.
2. s-o-b.
I *thought* having read something like that before :) Thanks for the hint. I just re-submitted the patch to meet the requirement. Hopefully the new one won't annoy anyone.
Best regards,
YONETANI Tomokazu.