Fix FTBFS on freebsd

This resolves Bug 2431

Signed-off-by: Nikolaus Klepp <office@klepp.biz>
pull/1/head
Nikolaus Klepp 10 years ago committed by Slávek Banko
parent e443c9e0b2
commit 3be9f300c9

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

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

@ -19,6 +19,9 @@
**/ **/
#include <config.h> #include <config.h>
#ifndef _GNU_SOURCE
#define _GNU_SOURCE /* Needed for getline */
#endif
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>

@ -17,6 +17,10 @@
* Boston, MA 02110-1301, USA. * Boston, MA 02110-1301, USA.
**/ **/
#ifndef _GNU_SOURCE
#define _GNU_SOURCE /* Needed for getline */
#endif
#include "ppdloader.h" #include "ppdloader.h"
#include "foomatic2loader.h" #include "foomatic2loader.h"
#include "driver.h" #include "driver.h"

Loading…
Cancel
Save