瀏覽代碼

declare the internal syscalls static inline

Mike Frysinger 20 年之前
父節點
當前提交
9eb7e16e25
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      libc/misc/sysvipc/msgq.c
  2. 1 1
      libc/misc/sysvipc/shm.c

+ 1 - 1
libc/misc/sysvipc/msgq.c

@@ -7,7 +7,7 @@
 
 #ifdef __NR_msgctl
 #define __NR___libc_msgctl __NR_msgctl
-_syscall3(int, __libc_msgctl, int, msqid, int, cmd, struct msqid_ds *, buf);
+static inline _syscall3(int, __libc_msgctl, int, msqid, int, cmd, struct msqid_ds *, buf);
 #endif
 /* Message queue control operation.  */
 int msgctl(int msqid, int cmd, struct msqid_ds *buf)

+ 1 - 1
libc/misc/sysvipc/shm.c

@@ -52,7 +52,7 @@ void * shmat (int shmid, const void *shmaddr, int shmflg)
 /* Provide operations to control over shared memory segments.  */
 #ifdef __NR_shmctl
 #define __NR___libc_shmctl __NR_shmctl
-_syscall3(int, __libc_shmctl, int, shmid, int, cmd, struct shmid_ds *, buf);
+static inline _syscall3(int, __libc_shmctl, int, shmid, int, cmd, struct shmid_ds *, buf);
 #endif
 int shmctl(int shmid, int cmd, struct shmid_ds *buf)
 {