Browse Source

dansguardian: Fix build error due to missing cstdlib include

Fixes the following build errors:

mipsel-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I..
-D__CONFFILE='"/etc/dansguardian/dansguardian.conf"'
-D__LOGLOCATION='"/var/log/dansguardian/"' -D__PIDDIR='"/var/run"'
-D__PROXYUSER='"root"' -D__PROXYGROUP='"root"'
-D__CONFDIR='"/etc/dansguardian"'
-I/local/users/fainelli/openwrt/trunk/staging_dir/target-mipsel-linux-gnu_glibc/usr/include
-I/local/users/fainelli/openwrt/trunk/staging_dir/target-mipsel-linux-gnu_glibc/include
-I/opt/toolchains/stbgcc-4.8-1.5/usr/include
-I/opt/toolchains/stbgcc-4.8-1.5/include    -Os -pipe -mno-branch-likely
-mips32r2 -mtune=24kc -fno-caller-saves -mips16 -minterlink-mips16
-fno-rtti  -MT dansguardian-OptionContainer.o -MD -MP -MF
.deps/dansguardian-OptionContainer.Tpo -c -o
dansguardian-OptionContainer.o `test -f 'OptionContainer.cpp' || echo
'./'`OptionContainer.cpp
OptionContainer.cpp: In member function 'void
OptionContainer::loadRooms()':
OptionContainer.cpp:796:9: error: 'exit' was not declared in this scope
   exit(1);
         ^
OptionContainer.cpp:824:10: error: 'exit' was not declared in this scope
    exit(1);
          ^
make[5]: *** [dansguardian-OptionContainer.o] Error 1

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
lilik-openwrt-22.03
Florian Fainelli 8 years ago
parent
commit
b56986e43c
1 changed files with 12 additions and 0 deletions
  1. +12
    -0
      net/dansguardian/patches/002-cstdlib.patch

+ 12
- 0
net/dansguardian/patches/002-cstdlib.patch View File

@ -0,0 +1,12 @@
Index: dansguardian-2.12.0.3/src/OptionContainer.cpp
===================================================================
--- dansguardian-2.12.0.3.orig/src/OptionContainer.cpp
+++ dansguardian-2.12.0.3/src/OptionContainer.cpp
@@ -17,6 +17,7 @@
#include <sstream>
#include <syslog.h>
#include <dirent.h>
+#include <cstdlib>
#include <unistd.h> // checkme: remove?

Loading…
Cancel
Save