[icecast-dev] [PATCH] Solaris needs sys/types.h for uint32_t

Ralph Giles giles at xiph.org
Tue Mar 9 09:33:15 PST 2004



On Tue, Mar 09, 2004 at 02:44:09AM -0500, Dale Ghent wrote:

>  #include "config.h"
>  #include "compat.h"
>  
> +#ifdef HAVE_SYS_TYPES_H
> +    #include <sys/types.h>
> +#endif
> +

compat.h is supposed to make sure the stdint.h types are available. This is a royal pain, 
generally speaking, because of all the platforms that define some of the types in random general 
headers.

Doesn't solaris also provide them in inttypes.h? maybe this would be more appropriate (in 
compat.h):

#  if defined(HAVE_STDINT_H)
#    include <stdint.h>
#  elif defined(HAVE_INTTYPES_H)
#    include <inttypes.h>
#  endif

With the appropriate check in configure.

 -r
--- >8 ----
List archives:  http://www.xiph.org/archives/
icecast project homepage: http://www.icecast.org/
To unsubscribe from this list, send a message to 'icecast-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Icecast-dev mailing list