Welcome! Log In Create A New Profile

Advanced

Re: defining uint64_t, etc., during configure

April 28, 2010 03:24PM
On Tue, Apr 27, 2010 at 04:09:36PM -0400, Brian Lewis wrote:

> On Tuesday, 27.04.10 at 23:50, Igor Sysoev wrote:
> > It seems SCO has int32_t. Then could you show what is after
> > "checking for int32_t" in objs/autoconf.err ?
>
> objs/autotest.c: In function `main':
> objs/autotest.c:11: error: `int32_t' undeclared (first use in this function)
> objs/autotest.c:11: error: (Each undeclared identifier is reported only once
> objs/autotest.c:11: error: for each function it appears in.)
> objs/autotest.c:11: error: parse error before "i"
> ----------
>
> #include <sys/types.h>
> #include <signal.h>
> #include <sys/socket.h>
> #include <sys/time.h>
> #include <sys/resource.h>
> #include <netinet/in.h>
>
>
> int main() {
> int32_t i = 0;
> return 0;
> }
>
> Adding '#include <sys/bitypes.h>' lets autotest.c compile.

It seems <sys/bitypes.h> is the right way to use int32_t, etc. on SCO.
Could you try the attached patch ?


--
Igor Sysoev
http://sysoev.ru/en/
Index: src/os/unix/ngx_posix_config.h
===================================================================
--- src/os/unix/ngx_posix_config.h (revision 2825)
+++ src/os/unix/ngx_posix_config.h (working copy)
@@ -33,6 +33,9 @@
#if (NGX_HAVE_INTTYPES_H)
#include <inttypes.h>
#endif
+#if (NGX_HAVE_BITYPES_H)
+#include <sys/bitypes.h>
+#endif
#include <stdarg.h>
#include <stddef.h> /* offsetof() */
#include <stdio.h>
Index: auto/types/sizeof
===================================================================
--- auto/types/sizeof (revision 2825)
+++ auto/types/sizeof (working copy)
@@ -21,6 +21,7 @@
#include <signal.h>
#include <sys/resource.h>
$NGX_INCLUDE_INTTYPES_H
+$NGX_INCLUDE_SYS_BITYPES_H
$NGX_INCLUDE_AUTO_CONFIG_H

int main() {
Index: auto/types/typedef
===================================================================
--- auto/types/typedef (revision 2825)
+++ auto/types/typedef (working copy)
@@ -25,6 +25,7 @@
#include <sys/resource.h>
#include <netinet/in.h>
$NGX_INCLUDE_INTTYPES_H
+$NGX_INCLUDE_SYS_BITYPES_H

int main() {
$ngx_try i = 0;
Index: auto/headers
===================================================================
--- auto/headers (revision 2825)
+++ auto/headers (working copy)
@@ -9,4 +9,5 @@
ngx_include="sys/param.h"; . auto/include
ngx_include="sys/mount.h"; . auto/include
ngx_include="sys/statvfs.h"; . auto/include
+ngx_include="sys/bitypes.h"; . auto/include
ngx_include="crypt.h"; . auto/include
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

defining uint64_t, etc., during configure

Brian Lewis April 26, 2010 10:14AM

Re: defining uint64_t, etc., during configure

Igor Sysoev April 27, 2010 01:56PM

Re: defining uint64_t, etc., during configure

Brian Lewis April 27, 2010 02:02PM

Re: defining uint64_t, etc., during configure

Igor Sysoev April 27, 2010 02:42PM

Re: defining uint64_t, etc., during configure

Brian Lewis April 27, 2010 03:44PM

Re: defining uint64_t, etc., during configure

Igor Sysoev April 27, 2010 03:54PM

Re: defining uint64_t, etc., during configure

Brian Lewis April 27, 2010 04:16PM

Re: defining uint64_t, etc., during configure

Igor Sysoev April 28, 2010 03:24PM

Re: defining uint64_t, etc., during configure

Brian Lewis April 28, 2010 03:46PM

Re: defining uint64_t, etc., during configure

Igor Sysoev April 28, 2010 03:56PM

Re: defining uint64_t, etc., during configure

Igor Sysoev April 28, 2010 04:04PM

Re: defining uint64_t, etc., during configure

Brian Lewis April 28, 2010 04:12PM

Re: defining uint64_t, etc., during configure

Igor Sysoev April 29, 2010 02:38AM

Re: defining uint64_t, etc., during configure

Brian Lewis April 29, 2010 09:52AM

Re: defining uint64_t, etc., during configure

Igor Sysoev April 29, 2010 10:00AM

Re: defining uint64_t, etc., during configure

Igor Sysoev April 29, 2010 10:02AM

Re: defining uint64_t, etc., during configure

Brian Lewis April 29, 2010 10:10AM

Re: defining uint64_t, etc., during configure

Igor Sysoev April 29, 2010 10:46AM

Re: defining uint64_t, etc., during configure

Brian Lewis April 29, 2010 11:16AM

Re: defining uint64_t, etc., during configure

Brian Lewis April 29, 2010 10:06AM

Re: defining uint64_t, etc., during configure

Brian Lewis April 28, 2010 04:12PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 85
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready