Browse Source

Add sys/wait.h stub header with WAIT_ANY definition for systems (such as

Solaris and illumos based distributions) which don't have it.
OPENBSD_5_9
Paul B. Henson 9 years ago
parent
commit
2bb74c098b
2 changed files with 16 additions and 0 deletions
  1. +1
    -0
      include/Makefile.am
  2. +15
    -0
      include/sys/wait.h

+ 1
- 0
include/Makefile.am View File

@ -7,6 +7,7 @@ noinst_HEADERS += sys/socket.h
noinst_HEADERS += sys/types.h
noinst_HEADERS += sys/time.h
noinst_HEADERS += sys/mman.h
noinst_HEADERS += sys/wait.h
noinst_HEADERS += err.h
noinst_HEADERS += ifaddrs.h
noinst_HEADERS += imsg.h


+ 15
- 0
include/sys/wait.h View File

@ -0,0 +1,15 @@
/*
* Public domain
* sys/wait.h compatibility shim
*/
#include_next <sys/wait.h>
#ifndef LIBCOMPAT_SYS_WAIT_H
#define LIBCOMPAT_SYS_WAIT_H
#ifndef WAIT_ANY
#define WAIT_ANY (-1) /* Any process. */
#endif
#endif

Loading…
Cancel
Save