Browse Source

Amir Shalem writes:
there are missing prototypes for chown() and execle() in uClibc-snapshot.
I'm attaching a patch to add the missing prototypes.

the error I'm getting without the patch:
AR cr libc/libc_so.a
LD libuClibc-0.9.28.so
libc/libc_so.a(grantpt.os): In function `__unix_grantpt':
grantpt.c:(.text+0x108): undefined reference to `__GI_chown'
grantpt.c:(.text+0x1ae): undefined reference to `__GI_execle'

Mike Frysinger 18 years ago
parent
commit
09a6ea9429
2 changed files with 3 additions and 0 deletions
  1. 2 0
      libc/sysdeps/linux/common/chown.c
  2. 1 0
      libc/unistd/exec.c

+ 2 - 0
libc/sysdeps/linux/common/chown.c

@@ -10,6 +10,8 @@
 #include "syscalls.h"
 #include <unistd.h>
 
+libc_hidden_proto(chown)
+
 #define __NR___syscall_chown __NR_chown
 static inline _syscall3(int, __syscall_chown, const char *, path,
 		__kernel_uid_t, owner, __kernel_gid_t, group);

+ 1 - 0
libc/unistd/exec.c

@@ -40,6 +40,7 @@
 #include <sys/mman.h>
 
 libc_hidden_proto(execl)
+libc_hidden_proto(execle)
 libc_hidden_proto(execvp)
 
 libc_hidden_proto(memcpy)