Ver Fonte

Correct NORADIUS compilarion support

z3APA3A há 5 anos atrás
pai
commit
3e35fdd054
1 ficheiros alterados com 4 adições e 1 exclusões
  1. 4 1
      src/log.c

+ 4 - 1
src/log.c

@@ -57,10 +57,13 @@ void logpush(struct logevent *evt);
 #define HAVERADIUS 0
 #define HAVERADIUS 0
 #define HAVESQL 0
 #define HAVESQL 0
 #else
 #else
+#ifndef NORADIUS
 int raddobuf(struct clientparam * param, unsigned char * buf, int bufsize, const unsigned char *s);
 int raddobuf(struct clientparam * param, unsigned char * buf, int bufsize, const unsigned char *s);
 void logradius(const char * buf, int len, struct LOGGER *logger);
 void logradius(const char * buf, int len, struct LOGGER *logger);
 #define HAVERADIUS 1
 #define HAVERADIUS 1
-
+#else
+#define HAVERADIUS 0
+#endif
 #ifndef NOODBC
 #ifndef NOODBC
 #define HAVESQL 1
 #define HAVESQL 1
 static int sqlinit(struct LOGGER *logger);
 static int sqlinit(struct LOGGER *logger);