diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2016-08-30 15:26:27 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2016-08-30 16:13:29 +0200 |
commit | 1384d0ce6ea741aefb56b0006b6268d76e6cc2c2 (patch) | |
tree | 20be404593bd66d252597bb1d82d89de5fde63b9 | |
parent | b3851e86af91dc1aa6e265d5b2e4279b2611ff43 (diff) | |
download | sssd-1384d0ce6ea741aefb56b0006b6268d76e6cc2c2.tar.gz sssd-1384d0ce6ea741aefb56b0006b6268d76e6cc2c2.tar.xz sssd-1384d0ce6ea741aefb56b0006b6268d76e6cc2c2.zip |
netlink: Don't define USE_GNU
Applications should never #define USE_GNU themselves, but rather
_GNU_SOURCE. This patch removes USE_GNU and replaces it with including
config.h which has _GNU_SOURCE defined if applicable for that platform
See for example:
https://gcc.gnu.org/ml/fortran/2005-10/msg00365.html
Reviewed-by: Fabiano FidĂȘncio <fidencio@redhat.com>
-rw-r--r-- | src/monitor/monitor_netlink.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/monitor/monitor_netlink.c b/src/monitor/monitor_netlink.c index 22262949c..c4d56b39f 100644 --- a/src/monitor/monitor_netlink.c +++ b/src/monitor/monitor_netlink.c @@ -21,11 +21,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ +#include "config.h" + #include <talloc.h> #include <tevent.h> #include <sys/types.h> #include <sys/ioctl.h> -#define __USE_GNU /* needed for struct ucred */ #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> |