Jelajahi Sumber

use typeof to create the prototype

Mike Frysinger 19 tahun lalu
induk
melakukan
ceb83067f2
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      libc/sysdeps/linux/common/vfork.c

+ 1 - 1
libc/sysdeps/linux/common/vfork.c

@@ -12,7 +12,7 @@
 #ifdef __NR_fork
 libc_hidden_proto(fork)
 
-pid_t attribute_hidden __vfork(void);
+extern __typeof(vfork) __vfork;
 pid_t attribute_hidden __vfork(void)
 {
     return fork();