Skip to content

Commit 2c4714c

Browse files
authored
Merge pull request swiftlang#591 from dabrahams/patch-1
Add necessary #include for PATH_MAX on Linux
2 parents 3e7c798 + 9d0eb0d commit 2c4714c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/init.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
// NOTE: this file must not contain any atomic operations
2525

2626
#include "internal.h"
27+
#if __linux__
28+
#include <linux/limits.h> // for PATH_MAX
29+
#endif
2730

2831
#if HAVE_MACH
2932
#include "protocolServer.h"

0 commit comments

Comments
 (0)