SunOS cosmetic changes

Signed-off-by: Denis Kozadaev <denis@dilos.org>
pull/47/head
Denis Kozadaev 2 years ago
parent 1b96a3f738
commit 85e7328d52

@ -45,6 +45,9 @@ extern "C" {
#include <net/if.h>
#include <unistd.h>
#include <errno.h>
#ifdef Q_OS_SOLARIS
#include <sys/sockio.h>
#endif /* solaris */
}
#endif // POSIX

@ -26,11 +26,11 @@
#ifndef _KPPPCONFIG_H_
#define _KPPPCONFIG_H_
#if defined(__svr4__)
#ifdef Q_OS_SOLARIS
#define STREAMS
#define _XOPEN_SOURCE 1
#define _XOPEN_SOURCE 600
#define _XOPEN_SOURCE_EXTENDED 1
#define __EXTENSIONS__
#define __EXTENSIONS__ 1
#endif
#include <config.h>

@ -32,7 +32,7 @@
#include <unistd.h>
#include <fcntl.h>
#ifdef USE_SOLARIS
#ifdef Q_OS_SOLARIS
#include <strings.h>
#endif

@ -375,8 +375,8 @@ int find_user(char *name, char *tty, char *disp) {
#ifdef USE_UT_HOST
if (Options.debug_mode) {
syslog(LOG_DEBUG, "I wanna this:%s", ttyFound);
syslog(LOG_DEBUG, "ut_host=%s", ubuf.ut_host);
syslog(LOG_DEBUG, "%s", ubuf.ut_line);
syslog(LOG_DEBUG, "ut_host=%s", ubuf->ut_host);
syslog(LOG_DEBUG, "%s", ubuf->ut_line);
}
#endif
break;

Loading…
Cancel
Save