SunOS cosmetic changes

Signed-off-by: Denis Kozadaev <denis@dilos.org>
(cherry picked from commit 85e7328d52)
r14.1.x
Denis Kozadaev 10 months ago committed by Michele Calgaro
parent 2972ab25cb
commit 762a46f071
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

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