aboutsummaryrefslogtreecommitdiffstats
path: root/com32/libutil/sha512crypt.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-03-03 20:18:10 -0800
committerH. Peter Anvin <hpa@zytor.com>2008-03-03 20:18:10 -0800
commit03abbde81db7484ccdb4e1808881e1df20df2fb0 (patch)
tree6d9722ba6c8373122bb86c7562ac8cd5c6ed1598 /com32/libutil/sha512crypt.c
parent763bb1f82a4519bdf240fd5d43f7e776c0d5206f (diff)
downloadsyslinux-03abbde81db7484ccdb4e1808881e1df20df2fb0.tar.gz
syslinux-03abbde81db7484ccdb4e1808881e1df20df2fb0.tar.xz
syslinux-03abbde81db7484ccdb4e1808881e1df20df2fb0.zip
Prevent inclusion of system include files when inappropriate
Use "-nostdinc -iwithprefix include" to prevent the inclusion of system header files, but still permitting *compiler* header files.
Diffstat (limited to 'com32/libutil/sha512crypt.c')
-rw-r--r--com32/libutil/sha512crypt.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/com32/libutil/sha512crypt.c b/com32/libutil/sha512crypt.c
index 9ff587b8..9553ec1e 100644
--- a/com32/libutil/sha512crypt.c
+++ b/com32/libutil/sha512crypt.c
@@ -10,11 +10,14 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <sys/param.h>
+#include <minmax.h>
#include <sys/types.h>
#include "xcrypt.h"
+#define MIN(x,y) min(x,y)
+#define MAX(x,y) max(x,y)
+
/* Structure to save state of computation between the single steps. */
struct sha512_ctx
{