]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
freebsd: fix warning about redeclaration.
authorEric Leblond <eric@regit.org>
Fri, 7 Sep 2012 11:31:03 +0000 (13:31 +0200)
committerVictor Julien <victor@inliniac.net>
Sat, 8 Sep 2012 19:12:01 +0000 (21:12 +0200)
src/util-crypt.h
src/util-profiling.c

index c6af16f855a9b011e46817eb2d80f981d527ed4b..7a3540b29fe44279ac8626ea2ff061544535ee54 100644 (file)
@@ -60,7 +60,9 @@ typedef enum {
 
 #define ROL(x, y) ( (((unsigned long)(x)<<(unsigned long)((y)&31)) | (((unsigned long)(x)&0xFFFFFFFFUL)>>(unsigned long)(32-((y)&31)))) & 0xFFFFFFFFUL)
 #define ROLc(x, y) ( (((unsigned long)(x)<<(unsigned long)((y)&31)) | (((unsigned long)(x)&0xFFFFFFFFUL)>>(unsigned long)(32-((y)&31)))) & 0xFFFFFFFFUL)
+#ifndef MIN
 #define MIN(x, y) ( ((x)<(y))?(x):(y) )
+#endif
 
 typedef struct Sha1State_ {
     uint64_t length;
index 524f05a4eed49c8aa28f8a1c133de2af5717f549..23ffe41671ba1b93a89449b8cff0ad45dd4d15f9 100644 (file)
 
 #ifdef PROFILING
 
+#ifndef MIN
 #define MIN(a, b) (((a) < (b)) ? (a) : (b))
+#endif
+
 #define DEFAULT_LOG_FILENAME "profile.log"
 #define DEFAULT_LOG_MODE_APPEND "yes"