1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-05-24 16:43:28 +02:00

tests:gpgscm: Fix build error on AIX.

* tests/gpgscm/ffi.c (ffi_init): Undefine 'open' so it does not get
expanded to 'open64' in the ffi_define_function macro.

--
GnuPG-bug-id: 7632
Signed-off-by: Collin Funk <collin.funk1@gmail.com>
This commit is contained in:
Collin Funk via Gnupg-devel 2025-04-30 23:23:58 -07:00 committed by Werner Koch
parent 8ba33fffe9
commit 598296b9fc
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -1667,6 +1667,11 @@ ffi_init (scheme *sc, const char *argv0, const char *scriptname,
ffi_define_function (sc, getenv);
ffi_define_function (sc, setenv);
ffi_define_function_name (sc, "_exit", exit);
/* AIX defines open to open64 which breaks the macro expansion to
'do_open' if it is not undefined. */
#ifdef open
# undef open
#endif
ffi_define_function (sc, open);
ffi_define_function (sc, fdopen);
ffi_define_function (sc, close);