Commit Diff
--- platform.h +++ platform.h @@ -27,4 +27,9 @@ } while (0) #endif +/* replace pledge() with a no-op outside of OpenBSD */ +#ifndef __OpenBSD__ +#define pledge(promises, execpromises) 0 /* success */ +#endif + #endif /* PLATFORM_H_ */
--- platform.h +++ platform.h @@ -27,4 +27,9 @@ } while (0) #endif +/* replace pledge() with a no-op outside of OpenBSD */ +#ifndef __OpenBSD__ +#define pledge(promises, execpromises) 0 /* success */ +#endif + #endif /* PLATFORM_H_ */