Always define the exit codes locally -- even on posix.
This commit is contained in:
parent
190689961e
commit
1c2c1c27e8
1 changed files with 1 additions and 3 deletions
|
@ -51,14 +51,13 @@
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
// Error explanation, for some reason
|
// Error explanation, for some reason
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
// Exit codes
|
|
||||||
#include <sysexits.h>
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
// Error explanation
|
// Error explanation
|
||||||
#include <system_error>
|
#include <system_error>
|
||||||
|
#endif
|
||||||
|
|
||||||
// Following codes copied from /usr/include/sysexits.h,
|
// Following codes copied from /usr/include/sysexits.h,
|
||||||
// license: https://opensource.org/license/BSD-3-clause/
|
// license: https://opensource.org/license/BSD-3-clause/
|
||||||
|
@ -73,7 +72,6 @@
|
||||||
#define EX_TEMPFAIL 75 /* temp failure; user is invited to retry */
|
#define EX_TEMPFAIL 75 /* temp failure; user is invited to retry */
|
||||||
#define EX_NOPERM 77 /* permission denied */
|
#define EX_NOPERM 77 /* permission denied */
|
||||||
#define EX_CONFIG 78 /* configuration error */
|
#define EX_CONFIG 78 /* configuration error */
|
||||||
#endif
|
|
||||||
|
|
||||||
// Implementation of flag representation for flags in the main() method
|
// Implementation of flag representation for flags in the main() method
|
||||||
constexpr int FLAG_FG = 1;
|
constexpr int FLAG_FG = 1;
|
||||||
|
|
Loading…
Reference in a new issue