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 @@
#include <kdebug.h>
#include <tqsocketnotifier.h>

#if defined(__OpenBSD__)
#if defined(__OpenBSD__) || defined(__FreeBSD__)
#define __progname getprogname()
#else
extern char *__progname;

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

@@ -778,13 +778,13 @@ bool KURLCompletion::userCompletion(const MyURL &url, TQString *match)
// Environment variables
//

#if !defined(__OpenBSD__)
#if !defined(__OpenBSD__) && !defined(__FreeBSD__)
extern char **environ; // Array of environment variables
#endif

bool KURLCompletion::envCompletion(const MyURL &url, TQString *match)
{
#if defined(__OpenBSD__)
#if defined(__OpenBSD__) || defined(__FreeBSD__)
return false;
#else
if ( url.file().at(0) != '$' )

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

@@ -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>

+ 4
- 0
tdeprint/ppdloader.cpp View File

@@ -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"

Loading…
Cancel
Save