GNUmakefile, intcmp(1), npc(1), scrut(1), str(1), strcmp(1), include/sysexits.h: added fallback header file for when systems don’t have sysexits.h(3)

This commit is contained in:
2023-12-25 20:49:29 -07:00
parent 74d5b65f78
commit 94ba336ee4
7 changed files with 50 additions and 24 deletions

View File

@@ -19,10 +19,8 @@
#include <errno.h> /* errno */
#include <stdio.h> /* fprintf(3), stderr */
#include <stdlib.h> /* strtol(3), size_t, EXIT_FAILURE */
#ifndef EX_USAGE
# define EX_USAGE EXIT_FAILURE
#endif
#include <unistd.h> /* getopt(3), optind */
#include <sysexits.h>
/* 0b00? */ /* Equal | -e | 0b001 | 1 */
#define EQUAL 0x01 /* Greater | -g | 0b010 | 2 */