aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Tay <nick@windblume.net>2021-12-02 18:50:46 +1100
committerNicholas Tay <nick@windblume.net>2021-12-02 18:50:46 +1100
commit22f1a4d6c362db0704459f227163d68d51a5ad56 (patch)
tree10bd728a047405688422c38b3aabb018c159050c
parentd6ab9640056af4dbf9a27f18a9291426b20b7eb9 (diff)
downloadpassgen-22f1a4d6c362db0704459f227163d68d51a5ad56.tar.gz
passgen-22f1a4d6c362db0704459f227163d68d51a5ad56.tar.bz2
passgen-22f1a4d6c362db0704459f227163d68d51a5ad56.zip
Needless import of unistd on Linux
-rw-r--r--passgen.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/passgen.c b/passgen.c
index bea56fc..91d62fd 100644
--- a/passgen.c
+++ b/passgen.c
@@ -9,14 +9,16 @@
#include <sys/random.h>
#else
#include <time.h>
-#endif
#if defined (_WIN32) && ! defined (__MINGW32__)
#include <io.h>
-#else
+#elif ! defined (__linux__)
#include <unistd.h>
#endif
+#endif
+
+
#define CLASS(c, chars) \
case c: \
class = chars; \