Skip to content

Commit

Permalink
setns call appeared in Kernel 3.0.0 but only in glibc 2.14 or later,
Browse files Browse the repository at this point in the history
so test __GLIBC__ and __GLIBC_MINOR__ too.
  • Loading branch information
Neil McKee committed Apr 14, 2016
1 parent c307fcf commit dc3fa92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hsflowd.spec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Summary: host sFlow daemon
Name: hsflowd
Version: 1.29.2
Version: 1.29.3
Release: 1
License: http://host-sflow.sourceforge.net/license.html
Group: Applications/Internet
Expand Down
2 changes: 1 addition & 1 deletion src/Linux/readInterfaces.c
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ VNIC: <ifindex> <device> <mac>
*/

#include <linux/version.h>
#if LINUX_VERSION_CODE < KERNEL_VERSION(3,0,0)
#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,0,0) || (__GLIBC__ <= 2 && __GLIBC_MINOR__ < 14))
#ifndef CLONE_NEWNET
#define CLONE_NEWNET 0x40000000 /* New network namespace (lo, device, names sockets, etc) */
#endif
Expand Down

0 comments on commit dc3fa92

Please sign in to comment.