diff options
Diffstat (limited to 'include/linux/sem.h')
-rw-r--r-- | include/linux/sem.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/linux/sem.h b/include/linux/sem.h index 464842621a4a..10d6b226afc5 100644 --- a/include/linux/sem.h +++ b/include/linux/sem.h | |||
@@ -96,16 +96,21 @@ struct sem_array { | |||
96 | int complex_count; /* pending complex operations */ | 96 | int complex_count; /* pending complex operations */ |
97 | }; | 97 | }; |
98 | 98 | ||
99 | #ifdef CONFIG_SYSVIPC | ||
100 | |||
99 | struct sysv_sem { | 101 | struct sysv_sem { |
100 | struct sem_undo_list *undo_list; | 102 | struct sem_undo_list *undo_list; |
101 | }; | 103 | }; |
102 | 104 | ||
103 | #ifdef CONFIG_SYSVIPC | ||
104 | |||
105 | extern int copy_semundo(unsigned long clone_flags, struct task_struct *tsk); | 105 | extern int copy_semundo(unsigned long clone_flags, struct task_struct *tsk); |
106 | extern void exit_sem(struct task_struct *tsk); | 106 | extern void exit_sem(struct task_struct *tsk); |
107 | 107 | ||
108 | #else | 108 | #else |
109 | |||
110 | struct sysv_sem { | ||
111 | /* empty */ | ||
112 | }; | ||
113 | |||
109 | static inline int copy_semundo(unsigned long clone_flags, struct task_struct *tsk) | 114 | static inline int copy_semundo(unsigned long clone_flags, struct task_struct *tsk) |
110 | { | 115 | { |
111 | return 0; | 116 | return 0; |