summaryrefslogtreecommitdiffstats
path: root/tdeprint
diff options
context:
space:
mode:
authorNikolaus Klepp <office@klepp.biz>2015-06-11 03:00:34 +0200
committerSlávek Banko <slavek.banko@axis.cz>2015-06-11 03:04:20 +0200
commit91b7be12b453c1f0a6f3d5ff70778dedba0a690d (patch)
treea7896ae47f240a53b7b18df73e1b65e4ec736359 /tdeprint
parent50b2ec504637d33a6bbfc297a9bb32c4fc2899f5 (diff)
downloadtdelibs-91b7be12b453c1f0a6f3d5ff70778dedba0a690d.tar.gz
tdelibs-91b7be12b453c1f0a6f3d5ff70778dedba0a690d.zip
Fix FTBFS on freebsd
This resolves Bug 2431 Signed-off-by: Nikolaus Klepp <office@klepp.biz> (cherry picked from commit 3be9f300c9a754320a02fd10a729ef797ffb8506)
Diffstat (limited to 'tdeprint')
-rw-r--r--tdeprint/cups/make_driver_db_cups.cpp3
-rw-r--r--tdeprint/ppdloader.cpp4
2 files changed, 7 insertions, 0 deletions
diff --git a/tdeprint/cups/make_driver_db_cups.cpp b/tdeprint/cups/make_driver_db_cups.cpp
index a6dec1169..9b700111f 100644
--- a/tdeprint/cups/make_driver_db_cups.cpp
+++ b/tdeprint/cups/make_driver_db_cups.cpp
@@ -19,6 +19,9 @@
**/
#include <config.h>
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE /* Needed for getline */
+#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/tdeprint/ppdloader.cpp b/tdeprint/ppdloader.cpp
index a194c1c12..fd243b0f9 100644
--- a/tdeprint/ppdloader.cpp
+++ b/tdeprint/ppdloader.cpp
@@ -17,6 +17,10 @@
* Boston, MA 02110-1301, USA.
**/
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE /* Needed for getline */
+#endif
+
#include "ppdloader.h"
#include "foomatic2loader.h"
#include "driver.h"