[patch] ntp no longer compiles using WITHOUT_GNU_SUPPORT

From: Ben Kelly <bkelly_at_vadev.org>
Date: Tue, 2 Sep 2008 08:46:35 -0400
Hello all,

It looks like the following commit broke the WITHOUT_GNU_SUPPORT knob  
when compiling ntp:

   http://svn.freebsd.org/viewvc/base?view=revision&revision=182008

The various readline symbols are conditionally set in usr.sbin/ntp/ 
ntpdc/Makefile, but this commit now hardcodes them in the usr.sbin/ntp/ 
config.h as well.  I assume this was not intended.

The attached patch fixed the issue for me.

Anyway, just FYI.  Thanks.

- Ben

Index: usr.sbin/ntp/config.h
===================================================================
--- usr.sbin/ntp/config.h	(revision 91)
+++ usr.sbin/ntp/config.h	(working copy)
_at__at_ -439,7 +439,7 _at__at_
  /* #undef HAVE_LIBPOSIX4 */

  /* Define to 1 if you have the `readline' library (-lreadline). */
-#define HAVE_LIBREADLINE 1
+/* #undef HAVE_LIBREADLINE */

  /* Define to 1 if you have the `rt' library (-lrt). */
  #define HAVE_LIBRT 1
_at__at_ -570,10 +570,10 _at__at_
  /* #undef HAVE_PUTUTXLINE */

  /* Define to 1 if you have the <readline/history.h> header file. */
-#define HAVE_READLINE_HISTORY_H 1
+/* #undef HAVE_READLINE_HISTORY_H */

  /* Define to 1 if you have the <readline/readline.h> header file. */
-#define HAVE_READLINE_READLINE_H 1
+/* #undef HAVE_READLINE_READLINE_H */

  /* Define to 1 if you have the `readlink' function. */
  #define HAVE_READLINK 1
Received on Tue Sep 02 2008 - 11:26:03 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:34 UTC