From: Vinson Lee <[email protected]>

This patch fixes this build error with glibc before 2.13.

  CC    net/alg.o
net/alg.c: In function ‘alg_gen_sockaddr’:
net/alg.c:21: error: ‘PF_ALG’ undeclared (first use in this function)
net/alg.c:21: error: (Each undeclared identifier is reported only once
net/alg.c:21: error: for each function it appears in.)

Signed-off-by: Vinson Lee <[email protected]>
---
 net/alg.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/net/alg.c b/net/alg.c
index d13909b..86cdb66 100644
--- a/net/alg.c
+++ b/net/alg.c
@@ -5,6 +5,7 @@
 #include <stdlib.h>
 #include "config.h"
 #include "net.h"
+#include "compat.h"
 
 #ifdef USE_IF_ALG
 #include <linux/if_alg.h>
-- 
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe trinity" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to