Skip to content
Snippets Groups Projects
Commit 22cc7b04 authored by Vittorio Giovara's avatar Vittorio Giovara Committed by Tristan Matthews
Browse files

contrib: add uuid rules and patches

Dependency required by pjproject.

Change-Id: I495a94f2d51d84a937140bbff76f5f11e96a0859
Refs: #46617
parent 430d1020
No related branches found
No related tags found
No related merge requests found
6b3dea93d080d38629f31b615d040adccdece6f4a7d4ae9fd65073f83b4b0f818896cc41bae7569449a182b11e8a0e4c4dec83ea2131f6926d4473196413395d libuuid-1.0.2.tar.gz
--- a/c.h 2013-04-30 04:30:28.000000000 -0700
+++ b/c.h 2014-03-28 16:54:15.000000000 -0700
@@ -244,11 +244,13 @@ static inline int dirfd(DIR *d)
*/
static inline size_t get_hostname_max(void)
{
+#ifdef _SC_HOST_NAME_MAX
long len = sysconf(_SC_HOST_NAME_MAX);
if (0 < len)
return len;
+#endif
#ifdef MAXHOSTNAMELEN
return MAXHOSTNAMELEN;
#elif HOST_NAME_MAX
# libuuid part of util-linux
UUID_VERSION := 1.0.2
UUID_URL := $(SF)/libuuid/libuuid-$(UUID_VERSION).tar.gz
ifeq ($(call need_pkg," >= 2.0.0"),)
PKGS_FOUND += uuid
endif
$(TARBALLS)/libuuid-$(UUID_VERSION).tar.gz:
$(call download,$(UUID_URL))
.sum-uuid: libuuid-$(UUID_VERSION).tar.gz
uuid: libuuid-$(UUID_VERSION).tar.gz .sum-uuid
$(UNPACK)
$(APPLY) $(SRC)/uuid/android.patch
$(MOVE)
.uuid: uuid
cd $< && $(HOSTVARS) ./configure $(HOSTCONF)
cd $< && $(MAKE) install
touch $@
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment