Skip to content
This repository has been archived by the owner on Sep 29, 2024. It is now read-only.

Additional include required in WireGuardKitC with latest Xcode v16 #424

Open
daniel-wetter opened this issue Sep 29, 2024 · 0 comments
Open

Comments

@daniel-wetter
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant