Skip to content

Commit

Permalink
Always define the exit codes locally -- even on posix.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhaustein committed Feb 14, 2024
1 parent 1906899 commit 1c2c1c2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/tiv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,13 @@
#include <sys/ioctl.h>
// Error explanation, for some reason
#include <cstring>
// Exit codes
#include <sysexits.h>
#endif

#ifdef _WIN32
#include <windows.h>
// Error explanation
#include <system_error>
#endif

// Following codes copied from /usr/include/sysexits.h,
// license: https://opensource.org/license/BSD-3-clause/
Expand All @@ -73,7 +72,6 @@
#define EX_TEMPFAIL 75 /* temp failure; user is invited to retry */
#define EX_NOPERM 77 /* permission denied */
#define EX_CONFIG 78 /* configuration error */
#endif

// Implementation of flag representation for flags in the main() method
constexpr int FLAG_FG = 1;
Expand Down

0 comments on commit 1c2c1c2

Please sign in to comment.