aboutsummaryrefslogtreecommitdiff
path: root/pfinet/glue-include/linux/kernel.h
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2016-01-02 18:38:31 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2016-01-02 18:48:57 +0100
commit05e6878c8767cf7006675d5e5a646b2f74aa88c7 (patch)
tree3cba4a57d98573761d4538f6a24f1be1c2b2c197 /pfinet/glue-include/linux/kernel.h
parent5714421bb1d066abebc7e993bdf06e655b879b3a (diff)
downloadhurd-05e6878c8767cf7006675d5e5a646b2f74aa88c7.tar.gz
hurd-05e6878c8767cf7006675d5e5a646b2f74aa88c7.tar.bz2
hurd-05e6878c8767cf7006675d5e5a646b2f74aa88c7.zip
allow pfinet to link using -O0
This fixes a long list of undefined references when compiling with -O0 by using static instead of extern in header files.
Diffstat (limited to 'pfinet/glue-include/linux/kernel.h')
-rw-r--r--pfinet/glue-include/linux/kernel.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/pfinet/glue-include/linux/kernel.h b/pfinet/glue-include/linux/kernel.h
index a0e101b9..de5852f6 100644
--- a/pfinet/glue-include/linux/kernel.h
+++ b/pfinet/glue-include/linux/kernel.h
@@ -42,7 +42,7 @@
#define printk printf
-extern inline int
+static inline int
getname (const char *name, char **newp)
{
*newp = malloc (strlen (name) + 1);
@@ -50,7 +50,7 @@ getname (const char *name, char **newp)
return 0;
}
-extern inline void
+static inline void
putname (char *p)
{
free (p);
@@ -60,14 +60,14 @@ putname (char *p)
find any SIGIO code at all. So we'll just punt on that; clearly
Linux is missing the point. SIGURG should only be sent for
sockets that have explicitly requested it. */
-extern inline int
+static inline int
kill_proc (int pid, int signo, int priv)
{
assert (signo == SIGURG);
return 0;
}
-extern inline int
+static inline int
kill_pg (int pgrp, int signo, int priv)
{
assert (signo == SIGURG);