Эх сурвалжийг харах

use typeof to create the prototype

Mike Frysinger 20 жил өмнө
parent
commit
ceb83067f2

+ 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();