public inbox for linux-nfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] libio.h: Has been deprecated
@ 2018-01-11 17:08 Steve Dickson
  2018-01-17 16:11 ` Steve Dickson
  0 siblings, 1 reply; 2+ messages in thread
From: Steve Dickson @ 2018-01-11 17:08 UTC (permalink / raw)
  To: Linux NFS Mailing list

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>
---
 configure.ac               | 2 +-
 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>
-- 
2.14.3


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] libio.h: Has been deprecated
  2018-01-11 17:08 [PATCH] libio.h: Has been deprecated Steve Dickson
@ 2018-01-17 16:11 ` Steve Dickson
  0 siblings, 0 replies; 2+ messages in thread
From: Steve Dickson @ 2018-01-17 16:11 UTC (permalink / raw)
  To: Linux NFS Mailing list



On 01/11/2018 12:08 PM, Steve Dickson wrote:
> 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>
Committed... 

steved.
> ---
>  configure.ac               | 2 +-
>  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>
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-01-17 16:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-11 17:08 [PATCH] libio.h: Has been deprecated Steve Dickson
2018-01-17 16:11 ` Steve Dickson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox