Browse Source

Fix FTBFS on freebsd

This resolves Bug 2431

Signed-off-by: Nikolaus Klepp <office@klepp.biz>
pull/1/head
Nikolaus Klepp 4 years ago
parent
commit
3be9f300c9

+ 1
- 1
tdeio/tdeio/connection.cpp View File

@@ -43,7 +43,7 @@
43 43
 #include <kdebug.h>
44 44
 #include <tqsocketnotifier.h>
45 45
 
46
-#if defined(__OpenBSD__)
46
+#if defined(__OpenBSD__) || defined(__FreeBSD__)
47 47
 #define __progname getprogname()
48 48
 #else
49 49
 extern char *__progname;

+ 2
- 2
tdeio/tdeio/kurlcompletion.cpp View File

@@ -778,13 +778,13 @@ bool KURLCompletion::userCompletion(const MyURL &url, TQString *match)
778 778
 // Environment variables
779 779
 //
780 780
 
781
-#if !defined(__OpenBSD__)
781
+#if !defined(__OpenBSD__) && !defined(__FreeBSD__)
782 782
 extern char **environ; // Array of environment variables
783 783
 #endif
784 784
 
785 785
 bool KURLCompletion::envCompletion(const MyURL &url, TQString *match)
786 786
 {
787
-#if defined(__OpenBSD__)
787
+#if defined(__OpenBSD__) || defined(__FreeBSD__)
788 788
 	return false;
789 789
 #else
790 790
 	if ( url.file().at(0) != '$' )

+ 3
- 0
tdeprint/cups/make_driver_db_cups.cpp View File

@@ -19,6 +19,9 @@
19 19
  **/
20 20
 
21 21
 #include <config.h>
22
+#ifndef _GNU_SOURCE
23
+#define _GNU_SOURCE   /* Needed for getline */
24
+#endif
22 25
 #include <stdio.h>
23 26
 #include <stdlib.h>
24 27
 #include <string.h>

+ 4
- 0
tdeprint/ppdloader.cpp View File

@@ -17,6 +17,10 @@
17 17
  *  Boston, MA 02110-1301, USA.
18 18
  **/
19 19
 
20
+#ifndef _GNU_SOURCE
21
+#define _GNU_SOURCE   /* Needed for getline */
22
+#endif
23
+
20 24
 #include "ppdloader.h"
21 25
 #include "foomatic2loader.h"
22 26
 #include "driver.h"

Loading…
Cancel
Save