Skip to content

Commit efe67c9

Browse files
committed
Guard _DEFAULT_SOURCE against redefinition
GCC with -Werror treats macro redefinition as an error. Some compilers or build systems pre-define _DEFAULT_SOURCE.
1 parent b84dcfb commit efe67c9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

thinproxy.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@
2424
* POSSIBILITY OF SUCH DAMAGE.
2525
*/
2626

27+
#ifndef _DEFAULT_SOURCE
2728
#define _DEFAULT_SOURCE
29+
#endif
2830

2931
#include <sys/types.h>
3032
#include <sys/socket.h>

0 commit comments

Comments
 (0)