Skip to contentSkip to conversation

libio.h: Has been deprecated

PATCH In review Steve Dickson 1 participant 2 messages Jan 11, 2018 – Jan 17, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libio.h: Has been deprecated

In the latest glib-headers libio.h has been deprecated This patch removes this warning:

/usr/include/libio.h:21:2: warning: #warning "<libio.h> is deprecated; use <stdio.h> instead." [-Wcpp]
#warning "<libio.h> is deprecated; use <stdio.h> instead."

---
 configure.ac               | 2 +-
 support/include/sockaddr.h | 4 +---
 2 files changed, 2 insertions(+), 4 deletions(-)
configure.ac +1 -1
index 672dd40..2d328db 100644
@@ -456,7 +456,7 @@ AC_CHECK_HEADERS([arpa/inet.h fcntl.h libintl.h limits.h \
                  stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
                  sys/param.h sys/socket.h sys/time.h sys/vfs.h \
                  syslog.h unistd.h com_err.h et/com_err.h \
-                 ifaddrs.h nfs-plugin.h libio.h])
+                 ifaddrs.h nfs-plugin.h])
 
 dnl *************************************************************
 dnl Checks for typedefs, structures, and compiler characteristics
support/include/sockaddr.h +1 -3
index 446b537..eeebcdf 100644
@@ -24,9 +24,7 @@
 #include <config.h>
 #endif
 
-#ifdef HAVE_LIBIO_H
-#include <libio.h>
-#endif
+#include <stdio.h>
 #include <stdlib.h>
 #include <stdbool.h>
 #include <sys/socket.h>
Signature · 1 line
2.14.3
#1 lore raw
Quoted 7 lines · Steve Dickson

In the latest glib-headers libio.h has been deprecated This patch removes this warning:

/usr/include/libio.h:21:2: warning: #warning "<libio.h> is deprecated; use <stdio.h> instead." [-Wcpp]
#warning "<libio.h> is deprecated; use <stdio.h> instead."

Committed...

steved.

Quoted 34 lines
---
 configure.ac               | 2 +-
 support/include/sockaddr.h | 4 +---
 2 files changed, 2 insertions(+), 4 deletions(-)
configure.ac +1 -1
index 672dd40..2d328db 100644
@@ -456,7 +456,7 @@ AC_CHECK_HEADERS([arpa/inet.h fcntl.h libintl.h limits.h \
                  stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
                  sys/param.h sys/socket.h sys/time.h sys/vfs.h \
                  syslog.h unistd.h com_err.h et/com_err.h \
-                 ifaddrs.h nfs-plugin.h libio.h])
+                 ifaddrs.h nfs-plugin.h])
 
 dnl *************************************************************
 dnl Checks for typedefs, structures, and compiler characteristics
support/include/sockaddr.h +1 -3
index 446b537..eeebcdf 100644
@@ -24,9 +24,7 @@
 #include <config.h>
 #endif
 
-#ifdef HAVE_LIBIO_H
-#include <libio.h>
-#endif
+#include <stdio.h>
 #include <stdlib.h>
 #include <stdbool.h>
 #include <sys/socket.h>