Skip to content

Commit e52accb

Browse files
committed
Merge PR #552
2 parents 3ffe896 + ac121a0 commit e52accb

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

configure.ac

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ AC_INIT([Haskell network package],
44
[network])
55

66
dnl See also HsNet.h
7-
ac_includes_default="#define _GNU_SOURCE 1 /* for struct ucred on Linux */
7+
ac_includes_default="#ifndef _WIN32
8+
# define _GNU_SOURCE 1 /* for struct ucred on Linux */
9+
#endif
810
$ac_includes_default
911

1012
#ifdef _WIN32

include/HsNet.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
# endif
2020
#endif
2121

22-
#define _GNU_SOURCE 1 /* for struct ucred on Linux */
22+
#ifndef _WIN32
23+
# define _GNU_SOURCE 1 /* for struct ucred on Linux */
24+
#endif
2325
#define __APPLE_USE_RFC_3542 1 /* for IPV6_RECVPKTINFO */
2426

2527
#ifdef _WIN32

0 commit comments

Comments
 (0)