Avoid implicit declaration of memset() with OpenSSL.
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>
Mon, 1 Dec 2008 11:11:31 +0000 (12:11 +0100)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Mon, 1 Dec 2008 22:33:27 +0000 (14:33 -0800)
When building the libgcrypt-based code, string.h is included through
libgcrypt itself, but when building with OpenSSL it's missing.

Include it explicitly so that it's always safe.

Signed-off-by: Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
reglib.c

index c173818..2f10d23 100644 (file)
--- a/reglib.c
+++ b/reglib.c
@@ -1,5 +1,6 @@
 #include <errno.h>
 #include <stdio.h>
+#include <string.h>
 #include <arpa/inet.h>
 #include "reglib.h"