]> git.sesse.net Git - vlc/commitdiff
contrib: add minimal errno.h target (for WinCE)
authorPierre Ynard <linkfanel@yahoo.fr>
Thu, 12 Nov 2009 02:05:56 +0000 (03:05 +0100)
committerPierre Ynard <linkfanel@yahoo.fr>
Thu, 12 Nov 2009 02:05:56 +0000 (03:05 +0100)
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.

extras/contrib/src/Makefile
extras/contrib/src/packages.mak

index 09cd9512e52c1abb10dbe82802b3c29bb723312e..eaf185951480c46b440d7f6682faa2875d4b4bde 100644 (file)
@@ -229,6 +229,22 @@ endef
 #      $(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
 # ***************************************************************************
index e8eb5c9a9af6aa129209dc0878fc62c03dd59da2..b2e1c8527190c008bc4dd7b3b168a763b619d22c 100644 (file)
@@ -32,6 +32,7 @@ LIBAMR_NB_VERSION=7.0.0.0
 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