Commit 5681445
committed
need remaining copts in previous commit
-D_GNU_SOURCE - Enables all GNU extensions
-D_POSIX_C_SOURCE=200809L - Enables POSIX.1-2008 features
-D_XOPEN_SOURCE=600 - Enables X/Open System Interface (XSI) features
These macros should make the necessary POSIX terminal functions (grantpt, posix_openpt, ptsname, unlockpt) available to CGo when building the Go standard library.
The error occurred because these functions are part of the POSIX terminal interface, and they need to be explicitly enabled through feature test macros when building with certain C library implementations.1 parent 4c7d223 commit 5681445
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| 165 | + | |
165 | 166 | | |
| 167 | + | |
166 | 168 | | |
167 | 169 | | |
168 | 170 | | |
| |||
0 commit comments