mac80211: fix essid setting for ad-hoc (thx, stintel)
[openwrt-10.03/.git] / package / iptables / patches / 020-iptables-force-modprobe-util.patch
1 --- a/xtables.c
2 +++ b/xtables.c
3 @@ -285,6 +285,7 @@ void *xtables_realloc(void *ptr, size_t 
4  
5  static char *get_modprobe(void)
6  {
7 +#ifndef FORCE_MODPROBE_PROGRAM
8         int procfile;
9         char *ret;
10  
11 @@ -309,6 +310,9 @@ static char *get_modprobe(void)
12         free(ret);
13         close(procfile);
14         return NULL;
15 +#else
16 +       return strdup(FORCE_MODPROBE_PROGRAM);
17 +#endif
18  }
19  
20  int xtables_insmod(const char *modname, const char *modprobe, bool quiet)