summaryrefslogtreecommitdiffstats
path: root/apps/rehash.c
diff options
context:
space:
mode:
authorRich Salz <rsalz@akamai.com>2015-09-07 21:39:44 -0400
committerRich Salz <rsalz@openssl.org>2015-09-07 21:58:03 -0400
commit5278dec375c9a2d991db4c533b60e09c6c80e6e3 (patch)
tree7fc9a8283a39d9d1dfc4cf3c53ade1513affb753 /apps/rehash.c
parent55b2258859da5e8156dc9091911ce182945291fe (diff)
add support for apple os/x
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'apps/rehash.c')
-rw-r--r--apps/rehash.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/rehash.c b/apps/rehash.c
index 04827f2cef..b235e1bf25 100644
--- a/apps/rehash.c
+++ b/apps/rehash.c
@@ -2,7 +2,6 @@
* C implementation based on the original Perl and shell versions
*
* Copyright (c) 2013-2014 Timo Teräs <timo.teras@iki.fi>
- * All rights reserved.
*/
/* ====================================================================
* Copyright (c) 2015 The OpenSSL Project. All rights reserved.
@@ -60,7 +59,7 @@
#include "apps.h"
-#ifdef unix
+#if defined(unix) || defined(__APPLE__)
# include <unistd.h>
# include <stdio.h>
# include <limits.h>
@@ -480,4 +479,4 @@ int rehash_main(int argc, char **argv)
return (1);
}
-#endif
+#endif /* defined(unix) || defined(__APPLE__) */