summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2017-07-17 20:10:09 -0700
committerMartin Jansa <Martin.Jansa@gmail.com>2017-07-24 18:58:50 +0200
commitcaf460d7fc1b6e22e23504a52dd1ba5ed9194791 (patch)
treed2d9d949e1f6fe38fbab2c01fa579533e22b6d85
parentd96940ac54e0d6197f83d3183e9da6d21a7dcdd9 (diff)
downloadmeta-openembedded-caf460d7fc1b6e22e23504a52dd1ba5ed9194791.tar.gz
phonet-utils: Fix build with musl
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
-rw-r--r--meta-oe/recipes-connectivity/phonet-utils/phonet-utils/0001-Include-limits.h-for-PATH_MAX.patch25
-rw-r--r--meta-oe/recipes-connectivity/phonet-utils/phonet-utils_git.bb4
2 files changed, 28 insertions, 1 deletions
diff --git a/meta-oe/recipes-connectivity/phonet-utils/phonet-utils/0001-Include-limits.h-for-PATH_MAX.patch b/meta-oe/recipes-connectivity/phonet-utils/phonet-utils/0001-Include-limits.h-for-PATH_MAX.patch
new file mode 100644
index 000000000..8bb7e5a18
--- /dev/null
+++ b/meta-oe/recipes-connectivity/phonet-utils/phonet-utils/0001-Include-limits.h-for-PATH_MAX.patch
@@ -0,0 +1,25 @@
1From f7ad9a4471cee2324f216a0d82ba8097ec746c56 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 15 Jul 2017 11:48:12 -0700
4Subject: [PATCH] Include limits.h for PATH_MAX
5
6Signed-off-by: Khem Raj <raj.khem@gmail.com>
7---
8 src/pnstat.c | 1 +
9 1 file changed, 1 insertion(+)
10
11diff --git a/src/pnstat.c b/src/pnstat.c
12index 661a5bc..76068e6 100644
13--- a/src/pnstat.c
14+++ b/src/pnstat.c
15@@ -35,6 +35,7 @@
16 #include <dirent.h>
17 #include <unistd.h>
18 #include <netinet/tcp.h>
19+#include <limits.h>
20
21 struct fd
22 {
23--
242.13.3
25
diff --git a/meta-oe/recipes-connectivity/phonet-utils/phonet-utils_git.bb b/meta-oe/recipes-connectivity/phonet-utils/phonet-utils_git.bb
index 558996391..3c599950f 100644
--- a/meta-oe/recipes-connectivity/phonet-utils/phonet-utils_git.bb
+++ b/meta-oe/recipes-connectivity/phonet-utils/phonet-utils_git.bb
@@ -2,7 +2,9 @@ SUMMARY = "This small package provides a few command line tools for Linux Phonet
2HOMEPAGE = "" 2HOMEPAGE = ""
3LICENSE = "GPLv2" 3LICENSE = "GPLv2"
4LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" 4LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
5SRC_URI = "git://gitorious.org/meego-cellular/phonet-utils.git;branch=master" 5SRC_URI = "git://gitorious.org/meego-cellular/phonet-utils.git;branch=master \
6 file://0001-Include-limits.h-for-PATH_MAX.patch \
7 "
6PR = "r2" 8PR = "r2"
7S = "${WORKDIR}/git" 9S = "${WORKDIR}/git"
8SRCREV = "4acfa720fd37d178a048fc2be17180137d4a70ea" 10SRCREV = "4acfa720fd37d178a048fc2be17180137d4a70ea"