All of lore.kernel.org
 help / color / mirror / Atom feed
From: Loren McQuade <loren.mcquade@gmail.com>
To: wireguard@lists.zx2c4.com
Subject: [PATCH 1/2] WireGuardKitC: include sys/types.h
Date: Sat, 10 Oct 2026 09:03:02 -0700	[thread overview]
Message-ID: <20261010160303.2853-2-loren.mcquade@gmail.com> (raw)
In-Reply-To: <20261010160303.2853-1-loren.mcquade@gmail.com>

With the iOS 27 SDK the WireGuardKitC module fails to build:

  error: declaration of 'u_int32_t' must be imported from module
  '_DarwinFoundation1.unsigned_types.u_int32_t' before it is required

The same goes for u_char and u_int16_t. Include sys/types.h before using
them.

Signed-off-by: Loren McQuade <loren.mcquade@gmail.com>
---
 Sources/WireGuardKitC/WireGuardKitC.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Sources/WireGuardKitC/WireGuardKitC.h b/Sources/WireGuardKitC/WireGuardKitC.h
index 54e4783..84c53f7 100644
--- a/Sources/WireGuardKitC/WireGuardKitC.h
+++ b/Sources/WireGuardKitC/WireGuardKitC.h
@@ -1,6 +1,8 @@
 // SPDX-License-Identifier: MIT
 // Copyright © 2018-2023 WireGuard LLC. All Rights Reserved.
 
+#include <sys/types.h>
+
 #include "key.h"
 #include "x25519.h"
 
-- 
2.54.0 (Apple Git-157)


  reply	other threads:[~2026-10-26 19:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-10 16:03 [PATCH 0/2] iOS 27 build and launch fixes Loren McQuade
2026-10-10 16:03 ` Loren McQuade [this message]
2026-10-10 16:03 ` [PATCH 2/2] iOS: adopt the UIScene lifecycle Loren McQuade
2026-10-27 20:14 ` [PATCH 0/2] iOS 27 build and launch fixes John

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261010160303.2853-2-loren.mcquade@gmail.com \
    --to=loren.mcquade@gmail.com \
    --cc=wireguard@lists.zx2c4.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.