Commit dc287d1
Revert socket.h guards: restore original unguarded includes
The previous fix guarded <sys/socket.h> with #ifdef __linux__, but this
breaks macOS and Windows builds because:
- serial_tcp.c and xplane.c are compiled on ALL SITL platforms
- They require socket functions declared in target.h
- Guarding the declarations makes them unavailable on macOS/Windows
- This causes linker errors instead of fixing the issue
Reverting to the original approach:
- macOS has <sys/socket.h> (it's a POSIX system)
- Windows with Cygwin has <sys/socket.h>
- Only non-POSIX Windows needs different handling
The original code with unguarded includes worked on macOS/Windows
before the SocketCAN driver was added. Need to investigate the actual
root cause of the CI failures without breaking the code on other
platforms.
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>1 parent 4739bb8 commit dc287d1
1 file changed
+0
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | 30 | | |
33 | | - | |
34 | 31 | | |
35 | 32 | | |
36 | 33 | | |
| |||
208 | 205 | | |
209 | 206 | | |
210 | 207 | | |
211 | | - | |
212 | | - | |
213 | 208 | | |
214 | 209 | | |
215 | 210 | | |
216 | 211 | | |
217 | | - | |
0 commit comments