[vlc-devel] commit: contrib: add minimal errno.h target (for WinCE) (Pierre Ynard )
git version control
git at videolan.org
Thu Nov 12 03:14:10 CET 2009
vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Thu Nov 12 03:05:56 2009 +0100| [181dbe9efe7917b2ba5f75f64bf07d11ca6ca0d2] | committer: Pierre Ynard
contrib: add minimal errno.h target (for WinCE)
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.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=181dbe9efe7917b2ba5f75f64bf07d11ca6ca0d2
---
extras/contrib/src/Makefile | 16 ++++++++++++++++
extras/contrib/src/packages.mak | 1 +
2 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/extras/contrib/src/Makefile b/extras/contrib/src/Makefile
index 09cd951..eaf1859 100644
--- a/extras/contrib/src/Makefile
+++ b/extras/contrib/src/Makefile
@@ -230,6 +230,22 @@ endef
# 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
# ***************************************************************************
diff --git a/extras/contrib/src/packages.mak b/extras/contrib/src/packages.mak
index e8eb5c9..b2e1c85 100644
--- a/extras/contrib/src/packages.mak
+++ b/extras/contrib/src/packages.mak
@@ -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
More information about the vlc-devel
mailing list