- Replace nonstandard `sys/unistd.h` includes with `unistd.h` ones
- Add missing `fcntl.h` include to `libhttpd/protocol.c` in order to
provide declarations for `open()`, `O_RDONLY` etc.
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Drop arguement config_counterpart from append_config_option(). append_config_option
took an additional argument named config_counterpart which represents the
configuration name in configfile.This is needed for configuration variable names isn't the same
as in uci. Nodogsplash ignores the case of configuration variables and makes this feature optional.
Introduce new func append_config_option_map() which does the old behaviour.
This avoids failing to start in current OpenWrt Attitude Adjustment and trunk,
which lack IMQ support (and WONTFIX). Suggested in the issue discussed in:
http://ml.ninux.org/pipermail/nodogsplash/2013-May/000009.html
Signed-off-by: Gui Iribarren <gui@altermundi.net>