From 52a1f1814ef530d8c78442f2bcaf28f4f2575790 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Thu, 28 Sep 2017 00:01:40 +0200 Subject: hurd: Fix `revoke' symbol exposition from `unlockpt' `revoke' is MISC only, it should not be exposed along `unlockpt' which is XOPEN. * include/unistd.h (__revoke): New declaration. * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak alias. * sysdeps/mach/hurd/revoke.c (revoke): Likewise. * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of revoke. --- include/unistd.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/unistd.h') diff --git a/include/unistd.h b/include/unistd.h index a5625ed7f4..bfe0e4de47 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -130,6 +130,7 @@ extern int __symlink (const char *__from, const char *__to); extern ssize_t __readlink (const char *__path, char *__buf, size_t __len); extern int __unlink (const char *__name); extern int __gethostname (char *__name, size_t __len); +extern int __revoke (const char *__file); extern int __profil (unsigned short int *__sample_buffer, size_t __size, size_t __offset, unsigned int __scale); extern int __getdtablesize (void); -- cgit v1.2.3