SunOS cosmetic changes

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

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

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

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

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

Loading…
Cancel
Save