mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-09 08:28:02 +02:00
Fix warnings on Windows CE target.
This commit is contained in:
parent
e419a5cff7
commit
abb81eb446
5 changed files with 14 additions and 1 deletions
|
|
@ -10,6 +10,7 @@ check_include_file(sys/poll.h HAVE_POLL) # dbus-sysdeps.c, dbus-sysdeps-w
|
||||||
check_include_file(sys/time.h HAVE_SYS_TIME_H)# dbus-sysdeps-win.c
|
check_include_file(sys/time.h HAVE_SYS_TIME_H)# dbus-sysdeps-win.c
|
||||||
check_include_file(sys/wait.h HAVE_SYS_WAIT_H)# dbus-sysdeps-win.c
|
check_include_file(sys/wait.h HAVE_SYS_WAIT_H)# dbus-sysdeps-win.c
|
||||||
check_include_file(time.h HAVE_TIME_H) # dbus-sysdeps-win.c
|
check_include_file(time.h HAVE_TIME_H) # dbus-sysdeps-win.c
|
||||||
|
check_include_file(ws2tcpip.h HAVE_WS2TCPIP_H)# dbus-sysdeps-win.c
|
||||||
check_include_file(wspiapi.h HAVE_WSPIAPI_H) # dbus-sysdeps-win.c
|
check_include_file(wspiapi.h HAVE_WSPIAPI_H) # dbus-sysdeps-win.c
|
||||||
check_include_file(unistd.h HAVE_UNISTD_H) # dbus-sysdeps-util-win.c
|
check_include_file(unistd.h HAVE_UNISTD_H) # dbus-sysdeps-util-win.c
|
||||||
check_include_file(stdio.h HAVE_STDIO_H) # dbus-sysdeps.h
|
check_include_file(stdio.h HAVE_STDIO_H) # dbus-sysdeps.h
|
||||||
|
|
|
||||||
|
|
@ -119,6 +119,9 @@
|
||||||
/* Define to 1 if you have time.h */
|
/* Define to 1 if you have time.h */
|
||||||
#cmakedefine HAVE_TIME_H 1
|
#cmakedefine HAVE_TIME_H 1
|
||||||
|
|
||||||
|
/* Define to 1 if you have ws2tcpip.h */
|
||||||
|
#cmakedefine HAVE_WS2TCPIP_H
|
||||||
|
|
||||||
/* Define to 1 if you have wspiapi.h */
|
/* Define to 1 if you have wspiapi.h */
|
||||||
#cmakedefine HAVE_WSPIAPI_H 1
|
#cmakedefine HAVE_WSPIAPI_H 1
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -532,6 +532,8 @@ AC_CHECK_HEADERS(byteswap.h)
|
||||||
|
|
||||||
AC_CHECK_HEADERS(unistd.h)
|
AC_CHECK_HEADERS(unistd.h)
|
||||||
|
|
||||||
|
AC_CHECK_HEADERS(ws2tcpip.h)
|
||||||
|
|
||||||
AC_CHECK_HEADERS(wspiapi.h)
|
AC_CHECK_HEADERS(wspiapi.h)
|
||||||
|
|
||||||
# Add -D_POSIX_PTHREAD_SEMANTICS if on Solaris
|
# Add -D_POSIX_PTHREAD_SEMANTICS if on Solaris
|
||||||
|
|
|
||||||
|
|
@ -69,6 +69,11 @@ extern BOOL WINAPI ConvertSidToStringSidA (PSID Sid, LPSTR *StringSid);
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef HAVE_WS2TCPIP_H
|
||||||
|
/* getaddrinfo for Windows CE (and Windows). */
|
||||||
|
#include <ws2tcpip.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_WSPIAPI_H
|
#ifdef HAVE_WSPIAPI_H
|
||||||
// needed for w2k compatibility (getaddrinfo/freeaddrinfo/getnameinfo)
|
// needed for w2k compatibility (getaddrinfo/freeaddrinfo/getnameinfo)
|
||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,8 @@
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
|
/* For getaddrinfo. */
|
||||||
|
#define _WIN32_WCE 0x0401
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#undef interface
|
#undef interface
|
||||||
|
|
||||||
|
|
@ -46,7 +48,7 @@ BOOL WINAPI SHGetSpecialFolderPathW(HWND,LPWSTR,int,BOOL);
|
||||||
|
|
||||||
/* Seriously. Windows CE does not have errno. Don't you hate it when
|
/* Seriously. Windows CE does not have errno. Don't you hate it when
|
||||||
that happens? */
|
that happens? */
|
||||||
#define errno (GetLastError ())
|
#define errno ((int)GetLastError ())
|
||||||
|
|
||||||
#define ENOENT ERROR_FILE_NOT_FOUND
|
#define ENOENT ERROR_FILE_NOT_FOUND
|
||||||
#define EMFILE ERROR_TOO_MANY_OPEN_FILES
|
#define EMFILE ERROR_TOO_MANY_OPEN_FILES
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue