diff options
author | Flavio Cruz <flaviocruz@gmail.com> | 2016-01-02 18:38:31 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-01-02 18:48:57 +0100 |
commit | 05e6878c8767cf7006675d5e5a646b2f74aa88c7 (patch) | |
tree | 3cba4a57d98573761d4538f6a24f1be1c2b2c197 /pfinet/glue-include/linux/sched.h | |
parent | 5714421bb1d066abebc7e993bdf06e655b879b3a (diff) |
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/sched.h')
-rw-r--r-- | pfinet/glue-include/linux/sched.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pfinet/glue-include/linux/sched.h b/pfinet/glue-include/linux/sched.h index 26ab10a8..5cf2f1b6 100644 --- a/pfinet/glue-include/linux/sched.h +++ b/pfinet/glue-include/linux/sched.h @@ -78,13 +78,13 @@ prepare_current (int isroot) struct semaphore { }; -extern inline int +static inline int suser () { return current->isroot; }; -extern inline int +static inline int capable(int cap) { return current->isroot; @@ -195,7 +195,7 @@ schedule_timeout (long timeout) Hurd, servers are not responsible for SIGPIPE; the library does that itself upon receiving EPIPE. So we can just NOP such calls. */ -extern inline int +static inline int send_sig (u_long signo, struct task_struct *task, int priv) { assert (signo == SIGPIPE); |