Fix FTBFS on freebsd

This resolves Bug 2431

Signed-off-by: Nikolaus Klepp <office@klepp.biz>
(cherry picked from commit 3be9f300c9)
v3.5.13-sru
Nikolaus Klepp 10 years ago committed by Slávek Banko
parent e4ef4e00f9
commit c1136180cc

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

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

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

@ -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) != '$' )

Loading…
Cancel
Save