Browse Source

disable deprecated warnings for some files

Mike Frysinger 18 years ago
parent
commit
70d37cb4af

+ 1 - 1
include/sys/cdefs.h

@@ -219,7 +219,7 @@
 #endif
 
 /* gcc allows marking deprecated functions.  */
-#if __GNUC_PREREQ (3,2)
+#if __GNUC_PREREQ (3,2) && !defined(__UCLIBC_HIDE_DEPRECATED__)
 # define __attribute_deprecated__ __attribute__ ((__deprecated__))
 #else
 # define __attribute_deprecated__ /* Ignore */

+ 1 - 0
libc/inet/rpc/rcmd.c

@@ -35,6 +35,7 @@
 static char sccsid[] = "@(#)rcmd.c	8.3 (Berkeley) 3/26/94";
 #endif /* LIBC_SCCS and not lint */
 
+#define __UCLIBC_HIDE_DEPRECATED__
 #define __FORCE_GLIBC
 #include <features.h>
 

+ 1 - 0
libc/signal/sigblock.c

@@ -16,6 +16,7 @@
    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
    02111-1307 USA.  */
 
+#define __UCLIBC_HIDE_DEPRECATED__
 #include <errno.h>
 #include <signal.h>
 

+ 1 - 0
libc/signal/siggetmask.c

@@ -17,6 +17,7 @@
    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
    02111-1307 USA.  */
 
+#define __UCLIBC_HIDE_DEPRECATED__
 #include <signal.h>
 
 libc_hidden_proto(sigblock)

+ 1 - 0
libc/signal/sigpause.c

@@ -17,6 +17,7 @@
    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
    02111-1307 USA.  */
 
+#define __UCLIBC_HIDE_DEPRECATED__
 #define _BSD_SOURCE
 #include <errno.h>
 #include <signal.h>

+ 1 - 0
libc/signal/sigsetmask.c

@@ -16,6 +16,7 @@
    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
    02111-1307 USA.  */
 
+#define __UCLIBC_HIDE_DEPRECATED__
 #include <errno.h>
 #include <signal.h>
 

+ 1 - 0
libc/sysdeps/linux/common/pause.c

@@ -7,6 +7,7 @@
  * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  */
 
+#define __UCLIBC_HIDE_DEPRECATED__
 #include "syscalls.h"
 #include <unistd.h>