Summary
In the WireGuardKitC an #include is missing when compiling in the latest Xcode v16. Declaration of u_int32_t, u_char and u_int16_t require an explicit import of sys/types.h.
Add
#include "sys/types.h"
to WireGuardKitC to fix the problem.
Steps to reproduce
Build the Demo app on a upgraded macOS with Xcode 16
What is the current bug behavior?
Demo and WireGuardKitC code does not compile
What is the expected correct behavior?
No compiler warnings
Relevant logs and/or screenshots
Declaration of 'u_int32_t' must be imported from module 'DarwinFoundation.unsigned_types.u_int32_t' before it is required
Possible fixes suggested remediation
Add
#include "sys/types.h"
to WireGuardKitC to fix the problem.
Summary
In the WireGuardKitC an #include is missing when compiling in the latest Xcode v16. Declaration of u_int32_t, u_char and u_int16_t require an explicit import of sys/types.h.
Add
#include "sys/types.h"
to WireGuardKitC to fix the problem.
Steps to reproduce
Build the Demo app on a upgraded macOS with Xcode 16
What is the current bug behavior?
Demo and WireGuardKitC code does not compile
What is the expected correct behavior?
No compiler warnings
Relevant logs and/or screenshots
Declaration of 'u_int32_t' must be imported from module 'DarwinFoundation.unsigned_types.u_int32_t' before it is required
Possible fixes suggested remediation
Add
#include "sys/types.h"
to WireGuardKitC to fix the problem.