miredo: fix a compile error
authorFelix Fietkau <nbd@openwrt.org>
Thu, 16 Feb 2012 18:08:27 +0000 (18:08 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 16 Feb 2012 18:08:27 +0000 (18:08 +0000)
SVN-Revision: 30598

ipv6/miredo/patches/110-fix_compile_error.patch [new file with mode: 0644]

diff --git a/ipv6/miredo/patches/110-fix_compile_error.patch b/ipv6/miredo/patches/110-fix_compile_error.patch
new file mode 100644 (file)
index 0000000..a49b3f2
--- /dev/null
@@ -0,0 +1,12 @@
+--- a/src/main.c
++++ b/src/main.c
+@@ -300,7 +300,9 @@
+       if (val)
+       {
+               error_errno ("cap_set_proc");
++#ifdef MIREDO_DEFAULT_USERNAME
+               setuid_notice ();
++#endif
+               return -1;
+       }
+ #endif