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:
parent
8ba33fffe9
commit
598296b9fc
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user