[vlc-devel] commit: contrib: add minimal errno.h target (for WinCE) (Pierre Ynard )
git version control
git at videolan.org
Thu Nov 12 08:12:36 CET 2009
vlc | branch: 1.0-bugfix | Pierre Ynard <linkfanel at yahoo.fr> | Thu Nov 12 03:05:56 2009 +0100| [37c04448bb52ddb6752324c6910437d15d81c646] | 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.
(cherry picked from commit 181dbe9efe7917b2ba5f75f64bf07d11ca6ca0d2)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=37c04448bb52ddb6752324c6910437d15d81c646
---
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 7831685..eafedcf 100644
--- a/extras/contrib/src/Makefile
+++ b/extras/contrib/src/Makefile
@@ -262,6 +262,22 @@ DISTCLEAN_PKG += perl-$(PERL_VERSION).tar.gz
endif
# ***************************************************************************
+# 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 bcc9386..78655ff 100644
--- a/extras/contrib/src/packages.mak
+++ b/extras/contrib/src/packages.mak
@@ -34,6 +34,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