diff --git a/libs/port/spawn.c b/libs/port/spawn.c index 38c2944..be62c95 100644 --- a/libs/port/spawn.c +++ b/libs/port/spawn.c @@ -32,6 +32,11 @@ # include #endif +/* OpenBSD doesn't have ENOTSUP, but does have ENOTSUPP */ +#if defined (ENOTSUPP) && !defined (EOPNOTSUP) +#define ENOTSUP EOPNOTSUPP +#endif + #ifndef HAVE_SPAWNVP int spawnvp(int mode, const char *cmdname, const char *const argv[]) {