Skip to content

Commit

Permalink
nl: Add fallback definitions for nl80211 #defines
Browse files Browse the repository at this point in the history
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
  • Loading branch information
sardemff7 committed May 26, 2016
1 parent bac3b91 commit ea78baf
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Expand Up @@ -28,8 +28,7 @@ install:

before_script:
- autoreconf -fi
# nl plugin needs newer kernel headers
- ./configure --disable-silent-rules --enable-debug --enable-mpd-input --enable-systemd-input --disable-nl-input
- ./configure --disable-silent-rules --enable-debug --enable-mpd-input --enable-systemd-input
script:
- make && make check && make distcheck

Expand Down
16 changes: 15 additions & 1 deletion input/nl/src/nl.c
Expand Up @@ -47,7 +47,21 @@

#include <j4status-plugin-input.h>

#define BUFFER_MAX 500
#ifndef NUM_NL80211_ATTR
#define NUM_NL80211_ATTR (NL80211_ATTR_MAX+1)
#endif /* ! NUM_NL80211_ATTR */

#ifndef NL80211_MULTICAST_GROUP_CONFIG
#define NL80211_MULTICAST_GROUP_CONFIG "config"
#endif /* ! NL80211_MULTICAST_GROUP_CONFIG */

#ifndef NL80211_MULTICAST_GROUP_SCAN
#define NL80211_MULTICAST_GROUP_SCAN "scan"
#endif /* ! NL80211_MULTICAST_GROUP_SCAN */

#ifndef NL80211_MULTICAST_GROUP_MLME
#define NL80211_MULTICAST_GROUP_MLME "mlme"
#endif /* ! NL80211_MULTICAST_GROUP_MLME */

typedef enum {
ADDRESSES_IPV4,
Expand Down

0 comments on commit ea78baf

Please sign in to comment.