Tweak defines to get at the declaration of strptime(3), fixes clang 15 build

ok ajacoutot@ (maintainer)
This commit is contained in:
jca 2023-01-11 17:46:48 +00:00
parent ac26d46a16
commit d0d5f73e33
3 changed files with 23 additions and 1 deletions

View File

@ -4,7 +4,7 @@ COMMENT= library for bits of crypto UI and parsing
GNOME_PROJECT= gcr GNOME_PROJECT= gcr
GNOME_VERSION= 3.41.1 GNOME_VERSION= 3.41.1
REVISION= 0 REVISION= 1
SHARED_LIBS += gck-1 2.1 # 0.0.0 SHARED_LIBS += gck-1 2.1 # 0.0.0
SHARED_LIBS += gcr-base-3 3.1 # 1.0.0 SHARED_LIBS += gcr-base-3 3.1 # 1.0.0

View File

@ -0,0 +1,11 @@
Index: gck/meson.build
--- gck/meson.build.orig
+++ gck/meson.build
@@ -78,6 +78,7 @@ gck_cflags = [
'-DP11_KIT_API_SUBJECT_TO_CHANGE',
'-DPKCS11_REGISTRY_DIR="@0@"'.format(get_option('prefix') / get_option('libdir') / 'pkcs11'),
'-D_XOPEN_SOURCE', # Needed for strptime()
+ '-D_XOPEN_VERSION=4', # Needed for strptime()
'-D_DEFAULT_SOURCE', # Needed for timegm
]

View File

@ -0,0 +1,11 @@
Index: gcr/meson.build
--- gcr/meson.build.orig
+++ gcr/meson.build
@@ -147,6 +147,7 @@ gcr_base_cflags = [
'-DGCK_API_SUBJECT_TO_CHANGE',
'-DP11_KIT_API_SUBJECT_TO_CHANGE',
'-D_XOPEN_SOURCE', # Needed for strptime()
+ '-D_XOPEN_VERSION=4', # Needed for strptime()
]
gcr_base_symbolmap = meson.current_source_dir() / 'libgcr-base.map'