diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-09-12 20:35:46 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-09-12 20:35:46 -0700 |
commit | 71d01ae185d95888e3908cce5dba99890e970931 (patch) | |
tree | 2620a90b0e1e20ccc3b55dba8b52d0e2173c6d41 /stream.c | |
parent | 4edfb0c2b6a7b6e915cb6ce5083284e6502e5086 (diff) | |
download | txr-71d01ae185d95888e3908cce5dba99890e970931.tar.gz txr-71d01ae185d95888e3908cce5dba99890e970931.tar.bz2 txr-71d01ae185d95888e3908cce5dba99890e970931.zip |
All HAVE_* macros should be tested with #if, not #ifdef.
* configure: In several config tests, test HAVE_SUPERLONG_T,
HAVE_LONGLONG_T and HAVE_SYS_WAIT with #if.
* lib.c: Test HAVE_GETENVIRONMENTSTRINGS with #if.
* lib.h: Test HAVE_DOUBLE_INTPTR_T with #if.
* mpi/mpi.c: Likewise.
* mpi/mpi.h: Likewise.
* socket.c: Test HAVE_GETADDRINFO with #if in three places.
* stream.c: Test HAVE_SYS_WAIT and HAVE_SOCKETS with #if.
Diffstat (limited to 'stream.c')
-rw-r--r-- | stream.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1271,7 +1271,7 @@ static val pipe_close(val stream, val throw_on_error) lit("unable to obtain status of command ~s: ~d/~s"), stream, num(errno), string_utf8(strerror(errno)), nao); } else { -#ifdef HAVE_SYS_WAIT +#if HAVE_SYS_WAIT if (throw_on_error) { if (WIFSIGNALED(status)) { int termsig = WTERMSIG(status); @@ -4749,7 +4749,7 @@ void stream_init(void) reg_fun(intern(lit("stream-set-prop"), user_package), func_n3(stream_set_prop)); reg_fun(intern(lit("stream-get-prop"), user_package), func_n2(stream_get_prop)); reg_fun(intern(lit("fileno"), user_package), func_n1(stream_fd)); -#ifdef HAVE_SOCKETS +#if HAVE_SOCKETS reg_fun(intern(lit("sock-family"), user_package), func_n1(sock_family)); reg_fun(intern(lit("sock-type"), user_package), func_n1(sock_type)); reg_fun(intern(lit("sock-peer"), user_package), func_n1(sock_peer)); |