Commit 4965fa01 authored by Warren Dukes's avatar Warren Dukes

minor fix ups for types

git-svn-id: https://svn.musicpd.org/mpd/trunk@460 09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent 1de1bfe3
...@@ -61,6 +61,8 @@ AC_CHECK_SIZEOF(int) ...@@ -61,6 +61,8 @@ AC_CHECK_SIZEOF(int)
AC_CHECK_SIZEOF(long) AC_CHECK_SIZEOF(long)
AC_CHECK_SIZEOF(long long) AC_CHECK_SIZEOF(long long)
AC_CHECK_HEADER(sys/inttypes.h,AC_DEFINE(HAVE_SYS_INTTYPES_H,1,[Define if sys/types.h present]),)
AC_CHECK_LIB(socket,socket,MPD_LIBS="$MPD_LIBS -lsocket",) AC_CHECK_LIB(socket,socket,MPD_LIBS="$MPD_LIBS -lsocket",)
AC_CHECK_LIB(nsl,gethostbyname,MPD_LIBS="$MPD_LIBS -lnsl",) AC_CHECK_LIB(nsl,gethostbyname,MPD_LIBS="$MPD_LIBS -lnsl",)
......
...@@ -17,12 +17,14 @@ typedef unsigned __int64 uint64_t; ...@@ -17,12 +17,14 @@ typedef unsigned __int64 uint64_t;
#include "../../config.h" #include "../../config.h"
#ifdef HAVE_STDINT_H #if defined(HAVE_STDINT_H)
#include <stdint.h> #include <stdint.h>
#else #elif defined(HAVE_INTTYPES_H)
#ifdef HAVE_INTTYPES_H
#include <inttypes.h> #include <inttypes.h>
#endif #elif defined(HAVE_SYS_INTTYPES_H)
#include <sys/inttypes.h>
#elif defined(HAVE_SYS_TYPES_H)
#include <sys/types.h>
#endif #endif
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment