summaryrefslogtreecommitdiffstats
path: root/package/open-lldp/0001-vdptool-fixed-compile-error-for-getline.patch
blob: c20267786eb9c42c08372fb43392d6e2e7de5142 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From 3c7887bb8a61a3b49a2989329c756a038023c544 Mon Sep 17 00:00:00 2001
From: Laurent Charpentier <laurent_pubs@yahoo.com>
Date: Fri, 12 Jan 2018 12:25:41 +0100
Subject: [PATCH] vdptool: fixed compile error for getline()

vdptool.c was generating an error: implicit declaration for the getline() function.

Signed-off-by: Laurent Charpentier <laurent_pubs@yahoo.com>
---
 vdptool.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/vdptool.c b/vdptool.c
index b805372..4930f6a 100644
--- a/vdptool.c
+++ b/vdptool.c
@@ -36,6 +36,7 @@
  * set and query VSI profile settings.
  */
 
+#define _GNU_SOURCE
 #include <stdlib.h>
 #include <stdio.h>
 #include <unistd.h>
-- 
2.14.3

OpenPOWER on IntegriCloud