From 3136231f8dffe103ef021b0b7e1cecc4046f12c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Tue, 28 Aug 2018 15:19:13 +0200 Subject: [PATCH] libasr: restore musl patch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jürgen Buchmüller --- .../patches/musl-inline-res_randomid.patch | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 srcpkgs/libasr/patches/musl-inline-res_randomid.patch diff --git a/srcpkgs/libasr/patches/musl-inline-res_randomid.patch b/srcpkgs/libasr/patches/musl-inline-res_randomid.patch new file mode 100644 index 0000000000..1fe96baade --- /dev/null +++ b/srcpkgs/libasr/patches/musl-inline-res_randomid.patch @@ -0,0 +1,24 @@ +diff --git configure.ac configure.ac +index 10aff04..07e149f 100644 +--- configure.ac ++++ configure.ac +@@ -456,6 +456,7 @@ AC_CHECK_FUNCS([ \ + issetugid \ + memmove \ + reallocarray \ ++ res_randomid \ + snprintf \ + strdup \ + strerror \ +diff --git src/asr_private.h src/asr_private.h +index 0960e37..158e7ff 100644 +--- src/asr_private.h ++++ src/asr_private.h +@@ -365,3 +365,7 @@ extern FILE * asr_debug; + asr_statestr((a)->as_state), \ + asr_statestr((s))); \ + (a)->as_state = (s); } while (0) ++ ++#ifndef HAVE_RES_RANDOMID ++#define res_randomid(x) (0xffff & getpid()) ++#endif