Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP1:Update
nfs-utils
0023-cache.c-removed-a-couple-warning.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0023-cache.c-removed-a-couple-warning.patch of Package nfs-utils
From 8d53eb0690e1aaa2cf05fbc4c9fef42634e0b5f1 Mon Sep 17 00:00:00 2001 From: Steve Dickson <steved@redhat.com> Date: Wed, 19 Jul 2017 16:04:39 -0400 Subject: [PATCH] cache.c: removed a couple warning cache.c:623:13: warning: In the GNU C Library, "major" is defined by <sys/sysmacros.h>. For historical compatibility, it is currently defined by <sys/types.h> as well, but we plan to remove this soon. To use "major", include <sys/sysmacros.h> directly. If you did not intend to use a system-defined macro "major", you should undefine it after including <sys/types.h>. if (parsed->major != major(stb.st_dev) || ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cache.c:624:13: warning: In the GNU C Library, "minor" is defined by <sys/sysmacros.h>. For historical compatibility, it is currently defined by <sys/types.h> as well, but we plan to remove this soon. To use "minor", include <sys/sysmacros.h> directly. If you did not intend to use a system-defined macro "minor", you should undefine it after including <sys/types.h>. parsed->minor != minor(stb.st_dev)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Steve Dickson <steved@redhat.com> --- utils/blkmapd/device-discovery.c | 1 + utils/mountd/cache.c | 1 + 2 files changed, 2 insertions(+) --- a/utils/blkmapd/device-discovery.c +++ b/utils/blkmapd/device-discovery.c @@ -32,6 +32,7 @@ #include <sys/mount.h> #include <sys/select.h> #include <sys/inotify.h> +#include <sys/sysmacros.h> #include <linux/kdev_t.h> #include <scsi/scsi.h> #include <scsi/scsi_ioctl.h> --- a/utils/mountd/cache.c +++ b/utils/mountd/cache.c @@ -11,6 +11,7 @@ #include <config.h> #endif +#include <sys/sysmacros.h> #include <sys/types.h> #include <sys/select.h> #include <sys/stat.h>
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor