diff options
| author | Steve Dickson <steved@redhat.com> | 2018-01-11 12:04:21 -0500 |
|---|---|---|
| committer | Steve Dickson <steved@redhat.com> | 2018-01-17 09:24:20 -0500 |
| commit | e2d556ce848e6c2661db893543c04a0f5c8bb7ad (patch) | |
| tree | 469bf80090900b2cbf00580f75491a53d8b11bd5 | |
| parent | 1451d7585bf1c622658ccc04abac7e79ffe40263 (diff) | |
| download | nfs-utils-e2d556ce848e6c2661db893543c04a0f5c8bb7ad.tar.gz | |
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."
Signed-off-by: Steve Dickson <steved@redhat.com>
| -rw-r--r-- | configure.ac | 2 | ||||
| -rw-r--r-- | support/include/sockaddr.h | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index 672dd40..2d328db 100644 --- a/configure.ac +++ b/configure.ac @@ -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 diff --git a/support/include/sockaddr.h b/support/include/sockaddr.h index 446b537..eeebcdf 100644 --- a/support/include/sockaddr.h +++ b/support/include/sockaddr.h @@ -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> |
