Skip to content

Commit

Permalink
pcsc_scan: define EX_* if sysexits.h is not available
Browse files Browse the repository at this point in the history
sysexits.h is not available on MSYS2 UCRT64.
  • Loading branch information
LudovicRousseau committed Jan 8, 2024
1 parent be73829 commit 71e0063
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pcsc_scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,13 @@
#include <unistd.h>
#include <string.h>
#include <signal.h>
#ifdef HAVE_SYSEXITS_H
#include <sysexits.h>
#else
#define EX_OK 0 /* successful termination */
#define EX_OSERR 71 /* system error (e.g., can't fork) */
#define EX_USAGE 64 /* command line usage error */
#endif
#include <sys/time.h>
#include <pthread.h>
#include <stdbool.h>
Expand Down

0 comments on commit 71e0063

Please sign in to comment.