aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2005-04-23 20:44:15 +0000
committerMartin Schlemmer <azarah@gentoo.org>2005-04-23 20:44:15 +0000
commitd07476b41ebf9d62a745d51066474bbac9b2b3d2 (patch)
treeefe9be31ccf84a7122743bd7c659a3c842df7a95 /localdecls.h
parentTagged and bagged 1.2 (diff)
downloadsandbox-d07476b41ebf9d62a745d51066474bbac9b2b3d2.tar.gz
sandbox-d07476b41ebf9d62a745d51066474bbac9b2b3d2.tar.bz2
sandbox-d07476b41ebf9d62a745d51066474bbac9b2b3d2.zip
Make sure all functions used in libsandbox.c is declared static. Define
SB_STATIC in localdecls.h for this. Include sandbox_futils.c rather than linking with its object. Hopefully this will fix bug #90153. URL: http://bugs.gentoo.org/90153 Signed-off-by: Martin Schlemmer <azarah@gentoo.org> Reported-by: Alexandre Rostovtsev <tetromino@gmail.com>
Diffstat (limited to 'localdecls.h')
-rw-r--r--localdecls.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/localdecls.h b/localdecls.h
index 0a27b50..f328062 100644
--- a/localdecls.h
+++ b/localdecls.h
@@ -40,4 +40,10 @@
# error PATH_MAX not defined!
#endif
+#ifndef OUTSIDE_LIBSANDBOX
+# define SB_STATIC static
+#else
+# define SB_STATIC
+#endif
+
#endif