pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/lighttpd Fix macOS build ("error: unknown type nam...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/90739b66d4ca
branches:  trunk
changeset: 459633:90739b66d4ca
user:      schmonz <schmonz%pkgsrc.org@localhost>
date:      Sun Oct 10 21:09:55 2021 +0000

description:
Fix macOS build ("error: unknown type name 'errno_t'") with upstream
patch 2a3cca7.

diffstat:

 www/lighttpd/distinfo                  |   4 +++-
 www/lighttpd/patches/patch-src_ck.h    |  19 +++++++++++++++++++
 www/lighttpd/patches/patch-src_first.h |  20 ++++++++++++++++++++
 3 files changed, 42 insertions(+), 1 deletions(-)

diffs (61 lines):

diff -r f3a0a4061359 -r 90739b66d4ca www/lighttpd/distinfo
--- a/www/lighttpd/distinfo     Sun Oct 10 19:10:41 2021 +0000
+++ b/www/lighttpd/distinfo     Sun Oct 10 21:09:55 2021 +0000
@@ -1,7 +1,9 @@
-$NetBSD: distinfo,v 1.63 2021/10/07 15:07:20 nia Exp $
+$NetBSD: distinfo,v 1.64 2021/10/10 21:09:55 schmonz Exp $
 
 RMD160 (lighttpd-1.4.60.tar.xz) = 1b5135a576342fae8ba1fe9e95e539beebd41249
 SHA512 (lighttpd-1.4.60.tar.xz) = e3a4b0f142f2a02212a8ede07e2f683605f8009d933281caee89b8b82482bdc473956bd9d9ff0392ea6cecf3fe3b05e6e4cee7052a875a1b00dfab7667402cd8
 Size (lighttpd-1.4.60.tar.xz) = 1008548 bytes
 SHA1 (patch-doc_config_lighttpd.conf) = 32a4b6bd32f88d05dd75f65de6ec57b203c37d8b
 SHA1 (patch-doc_lighttpd.8) = e08ac362784aebaca566d0f65380b70a829d6b4e
+SHA1 (patch-src_ck.h) = 45cdc4501f7adf9fcc86c887bdd34acc0d29d674
+SHA1 (patch-src_first.h) = 14ba794d6e2174f3e78b45afce92b4de3c1710f3
diff -r f3a0a4061359 -r 90739b66d4ca www/lighttpd/patches/patch-src_ck.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/lighttpd/patches/patch-src_ck.h       Sun Oct 10 21:09:55 2021 +0000
@@ -0,0 +1,19 @@
+$NetBSD: patch-src_ck.h,v 1.1 2021/10/10 21:09:55 schmonz Exp $
+
+Fix macOS build ("error: unknown type name 'errno_t'") with upstream
+patch 2a3cca7.
+
+--- src/ck.h.orig      2021-10-04 01:38:52.000000000 +0000
++++ src/ck.h
+@@ -12,6 +12,11 @@
+ #ifndef __STDC_WANT_LIB_EXT1__ /*(enable C11 Annex K ext1 *_s functions)*/
+ #define __STDC_WANT_LIB_EXT1__ 1
+ #endif
++#if defined(__APPLE__) && defined(__MACH__)
++#ifndef _DARWIN_C_SOURCE
++#define _DARWIN_C_SOURCE
++#endif
++#endif
+ #include "first.h"
+ #ifdef __FreeBSD__
+ #ifndef _RSIZE_T_DEFINED /* expecting __EXT1_VISIBLE 1 and _RSIZE_T_DEFINED */
diff -r f3a0a4061359 -r 90739b66d4ca www/lighttpd/patches/patch-src_first.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/lighttpd/patches/patch-src_first.h    Sun Oct 10 21:09:55 2021 +0000
@@ -0,0 +1,20 @@
+$NetBSD: patch-src_first.h,v 1.1 2021/10/10 21:09:55 schmonz Exp $
+
+Fix macOS build ("error: unknown type name 'errno_t'") with upstream
+patch 2a3cca7.
+
+--- src/first.h.orig   2021-10-04 01:38:52.000000000 +0000
++++ src/first.h
+@@ -13,6 +13,12 @@
+ #define _DEFAULT_SOURCE
+ #endif
+ 
++#if defined(__APPLE__) && defined(__MACH__)
++#ifndef _DARWIN_C_SOURCE
++#define _DARWIN_C_SOURCE
++#endif
++#endif
++
+ #ifndef __STDC_WANT_LIB_EXT1__
+ #define __STDC_WANT_LIB_EXT1__ 1
+ #endif



Home | Main Index | Thread Index | Old Index