1
0
forked from bonsai/harakit

scrut(1): without <sysexits.h> fall back to ANSI C

This commit is contained in:
dtb 2023-12-25 15:58:08 -07:00
parent 1bc574eafa
commit 52d150b02b
Signed by untrusted user: trinity
GPG Key ID: 31FF85CCB6DC7641

View File

@ -17,9 +17,10 @@
*/ */
#include <stdio.h> /* fprintf(3), stderr, NULL */ #include <stdio.h> /* fprintf(3), stderr, NULL */
#include <stdlib.h> /* EXIT_FAILURE */
#include <string.h> /* strchr(3) */ #include <string.h> /* strchr(3) */
#ifndef EX_USAGE #ifndef EX_USAGE
# include <sysexits.h> # define EX_USAGE EXIT_FAILURE
#endif #endif
#include <unistd.h> /* access(3), getopt(3), F_OK, R_OK, W_OK, X_OK */ #include <unistd.h> /* access(3), getopt(3), F_OK, R_OK, W_OK, X_OK */
#include <sys/stat.h> /* lstat(3), stat struct, S_ISBLK, S_ISCHR, S_ISDIR, #include <sys/stat.h> /* lstat(3), stat struct, S_ISBLK, S_ISCHR, S_ISDIR,