Skip to content

Commit 229a766

Browse files
committed
fix: Define _BSD_SOURCE to permit unistd functions like readlink.
https://linux.die.net/man/2/readlink https://stackoverflow.com/a/29201732 fixes sciter-sdk#131
1 parent b366451 commit 229a766

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sciter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
package sciter
66

77
/*
8-
#cgo CFLAGS: -g -std=c11 -Iinclude -DPLAIN_API_ONLY
8+
#cgo CFLAGS: -g -std=c11 -Iinclude -DPLAIN_API_ONLY -D_BSD_SOURCE -D_DEFAULT_SOURCE
99
#cgo linux LDFLAGS: -ldl
1010
#cgo linux pkg-config: gtk+-3.0
1111

0 commit comments

Comments
 (0)