summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config.h.cmake6
-rw-r--r--kcontrol/ConfigureChecks.cmake5
2 files changed, 11 insertions, 0 deletions
diff --git a/config.h.cmake b/config.h.cmake
index b2ed37797..4a37ca8d8 100644
--- a/config.h.cmake
+++ b/config.h.cmake
@@ -102,6 +102,12 @@
// taskmanager
#cmakedefine HAVE_XCOMPOSITE
+// kcontrol/nics
+#cmakedefine HAVE_IFREQ_IFR_HWADDR
+#ifndef HAVE_IFREQ_IFR_HWADDR
+#define ifr_hwaddr ifr_addr
+#endif
+
// kcontrol/fonts
#cmakedefine HAVE_FONTCONFIG 1
#cmakedefine HAVE_FREETYPE2 1
diff --git a/kcontrol/ConfigureChecks.cmake b/kcontrol/ConfigureChecks.cmake
index 3f017390c..157bb77ea 100644
--- a/kcontrol/ConfigureChecks.cmake
+++ b/kcontrol/ConfigureChecks.cmake
@@ -75,3 +75,8 @@ endif( )
# if( FONTENC_FOUND )
# set( HAVE_FONT_ENC 1 CACHE INTERNAL "" FORCE )
# endif( )
+
+
+##### check for ioctl(SIOCGIFHWADDR) return member
+
+check_struct_has_member( "struct ifreq" ifr_hwaddr net/if.h HAVE_IFREQ_IFR_HWADDR )