]> git.ipfire.org Git - thirdparty/make.git/commitdiff
* configure.ac: Remove AC_FUNC_SETVBUF_REVERSED.
authorPaul Smith <psmith@gnu.org>
Mon, 4 Jul 2022 22:18:01 +0000 (18:18 -0400)
committerPaul Smith <psmith@gnu.org>
Sat, 9 Jul 2022 14:47:13 +0000 (10:47 -0400)
This macro is obsolete: no useful system has this problem anymore.
* src/output.c (output_init): Remove reference to SETVBUF_REVERSED.
* src/config.ami.template: Remove undef of SETVBUF_REVERSED.
* src/config.h-vms.template: Ditto.
* src/config.h.W32.template: Ditto.

configure.ac
src/config.ami.template
src/config.h-vms.template
src/config.h.W32.template
src/output.c

index b2c45d97805afe2ca49e957fdb7dcff50128e53d..270fc5e8f11bd16d40dae5249bf5b8c2aabbccb9 100644 (file)
@@ -148,8 +148,6 @@ AC_CHECK_DECLS([bsd_signal], [], [], [[#define _GNU_SOURCE 1
 
 AC_FUNC_FORK
 
-AC_FUNC_SETVBUF_REVERSED
-
 # Rumor has it that strcasecmp lives in -lresolv on some odd systems.
 # It doesn't hurt much to use our own if we can't find it so I don't
 # make the effort here.
index e3025261f7920296370bde05ef69a4d950323a16..e74ef85d765c29316f6072b6641ced2dac29fccc 100644 (file)
@@ -131,11 +131,6 @@ this program.  If not, see <http://www.gnu.org/licenses/>.  */
 /* Define if you need to in order for stat and other things to work.  */
 /* #undef _POSIX_SOURCE */
 
-/* Define if the setvbuf function takes the buffering type as its second
-   argument and the buffer pointer as the third, as on System V
-   before release 3.  */
-/* #undef SETVBUF_REVERSED */
-
 /* If using the C implementation of alloca, define if you know the
    direction of stack growth for your system; otherwise it will be
    automatically deduced at run-time.
index f4fd92968dae759eb8876b01994693f525feb1f5..fce62aab3a54f359bef8c222f77325f366740bb6 100644 (file)
@@ -169,11 +169,6 @@ this program.  If not, see <http://www.gnu.org/licenses/>.  */
 /* Define to 1 if you need to in order for stat and other things to work.  */
 /* #undef _POSIX_SOURCE */
 
-/* Define to 1 if the setvbuf function takes the buffering type as its second
-   argument and the buffer pointer as the third, as on System V
-   before release 3.  */
-/* #undef SETVBUF_REVERSED */
-
 /* If using the C implementation of alloca, define if you know the
    direction of stack growth for your system; otherwise it will be
    automatically deduced at run-time.
index d47d1efb431fb9721e794e85c8124ddc7716343b..4fb2aa051d1274bbd7e22d13a83d9845dc9fc373 100644 (file)
@@ -406,11 +406,6 @@ char *ttyname (int);
 /* Define this if the SCCS 'get' command understands the '-G<file>' option. */
 /* #undef SCCS_GET_MINUS_G */
 
-/* Define to 1 if the 'setvbuf' function takes the buffering type as its
-   second argument and the buffer pointer as the third, as on System V before
-   release 3. */
-/* #undef SETVBUF_REVERSED */
-
 /* If using the C implementation of alloca, define if you know the
    direction of stack growth for your system; otherwise it will be
    automatically deduced at run time.
index 4827c14dbf8ddf09448d22661f3f6e95cc70a224..dccbff26d66d475eb82d2a5ba2d532bd6bcc500c 100644 (file)
@@ -464,12 +464,7 @@ output_init (struct output *out)
   /* Configure this instance of make.  Be sure stdout is line-buffered.  */
 
 #ifdef HAVE_SETVBUF
-# ifdef SETVBUF_REVERSED
-  setvbuf (stdout, _IOLBF, xmalloc (BUFSIZ), BUFSIZ);
-# else  /* setvbuf not reversed.  */
-  /* Some buggy systems lose if we pass 0 instead of allocating ourselves.  */
   setvbuf (stdout, 0, _IOLBF, BUFSIZ);
-# endif /* setvbuf reversed.  */
 #elif HAVE_SETLINEBUF
   setlinebuf (stdout);
 #endif  /* setlinebuf missing.  */