WinCE lacks errno support and thus doesn't have an errno.h header.
Since it is used like everywhere, contribs and VLC, we add a .errno
target in the contribs, that fetches a minimal errno.h that allows
everything to compile smoothly.
This is how it was done before too.
# $(INSTALL_NAME)
# touch $@
+# ***************************************************************************
+# errno
+# ***************************************************************************
+
+errno:
+ mkdir -p $@
+ $(WGET) $(ERRNO_URL)/errno.h -O $@/errno.h
+
+.errno: errno
+ mkdir -p $(PREFIX)/include
+ cp $</errno.h $(PREFIX)/include
+ touch $@
+
+CLEAN_FILE += .errno
+CLEAN_PKG += errno
+
# ***************************************************************************
# autoconf
# ***************************************************************************
LIBAMR_NB=$(PENGUIN)/amrnb-$(LIBAMR_NB_VERSION).tar.bz2
LIBAMR_WB_VERSION=7.0.0.2
LIBAMR_WB=$(PENGUIN)/amrwb-$(LIBAMR_WB_VERSION).tar.bz2
+ERRNO_URL=http://altair.videolan.org/~linkfanel/errno
AUTOCONF_VERSION=2.63
AUTOCONF_URL=$(GNU)/autoconf/autoconf-$(AUTOCONF_VERSION).tar.bz2
GNUMAKE_VERSION=3.81