[PATCH] posix_openpt: new module

2011-10-18 Thread Eric Blake
* modules/posix_openpt: New module. * m4/posix_openpt.m4: New file. * lib/posix_openpt.c: Likewise. * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl. (gl_STDLIB_H_DEFAULTS): Set defaults. * modules/stdlib (Makefile.am): Substitute macros. * lib/stdlib.in.h (posix_openpt): Declare. * MODULES.html.sh (

Re: signbit #define'd causes compilation error in octave

2011-10-18 Thread Eric Blake
On 10/18/2011 02:51 PM, Michael Goffioul wrote: Hi, With a current version of gnulib and MSVC10, I get a compilation error in octave due to signbit being #define'd by gnulib's math.h module. The configure script ends up with GNULIB_SIGNBIT being 1 and REPLACE_SIGNBIT being 1. This causes signbit

signbit #define'd causes compilation error in octave

2011-10-18 Thread Michael Goffioul
Hi, With a current version of gnulib and MSVC10, I get a compilation error in octave due to signbit being #define'd by gnulib's math.h module. The configure script ends up with GNULIB_SIGNBIT being 1 and REPLACE_SIGNBIT being 1. This causes signbit being #define'd as # define signbit(x) \ (si

Redefinition of errno constants in MSVC10

2011-10-18 Thread Michael Goffioul
Hi, When trying to compile current octave with MSVC10, I get a bunch of macro redefinition in errno.h module. See the following from the involved headers: $ grep ECONNRESET errno.h # define ECONNRESET 10054 $ grep ECONNRESET /c/Program\ Files/Microsoft\ Visual\ Studio\ 10.0/VC/include/errn