mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-09-07 22:21:47 +00:00
Merge pull request #758 from xrmx/ptyfix
Fixup pty plugin compilation on hurd
This commit is contained in:
@@ -23,7 +23,7 @@ extern struct uwsgi_server uwsgi;
|
||||
#elif defined(__FreeBSD__) || defined(__DragonFly__)
|
||||
#include <libutil.h>
|
||||
#endif
|
||||
#if !defined(__FreeBSD__) || !defined(__DragonFly__)
|
||||
#if !defined(__FreeBSD__) && !defined(__DragonFly__)
|
||||
#include <utmp.h>
|
||||
#endif
|
||||
|
||||
|
||||
+3
-3
@@ -1,12 +1,12 @@
|
||||
#include <uwsgi.h>
|
||||
#if defined(__linux__) || defined(__GNU_kFreeBSD__)
|
||||
#if defined(__linux__) || defined(__GNU_kFreeBSD__) || defined(__HURD__)
|
||||
#include <pty.h>
|
||||
#elif defined(__APPLE__) || defined(__OpenBSD__) || defined(__NetBSD__)
|
||||
#include <util.h>
|
||||
#elif defined(__FreeBSD__)
|
||||
#elif defined(__FreeBSD__) || defined(__DragonFly__)
|
||||
#include <libutil.h>
|
||||
#endif
|
||||
#ifndef __FreeBSD__
|
||||
#if !defined(__FreeBSD__) && !defined(__DragonFly__)
|
||||
#include <utmp.h>
|
||||
#endif
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ uwsgi_os = os.uname()[0]
|
||||
|
||||
CFLAGS = []
|
||||
LDFLAGS = []
|
||||
if uwsgi_os in ('Linux', 'FreeBSD'):
|
||||
if uwsgi_os in ('Linux', 'FreeBSD', 'GNU', 'NetBSD', 'DragonFly'):
|
||||
LIBS = ['-lutil']
|
||||
else:
|
||||
LIBS = []
|
||||
|
||||
Reference in New Issue
Block a user