libedit and g++

M. Warner Losh imp at bsdimp.com
Sun Jul 13 21:28:26 PDT 2003


please try the following patch:

Index: include/histedit.h
===================================================================
RCS file: /home/ncvs/src/include/histedit.h,v
retrieving revision 1.8
diff -u -r1.8 histedit.h
--- include/histedit.h	16 Jun 2002 08:29:33 -0000	1.8
+++ include/histedit.h	14 Jul 2003 04:26:41 -0000
@@ -47,6 +47,8 @@
 #include <sys/types.h>
 #include <stdio.h>
 
+__BEGIN_DECLS
+
 /*
  * ==== Editing ====
  */
@@ -193,5 +195,7 @@
 #define	H_LOAD		17	/* , const char *);	*/
 #define	H_SAVE		18	/* , const char *);	*/
 #define	H_CLEAR		19	/* , void);		*/
+
+__END_DECLS
 
 #endif /* _HISTEDIT_H_ */


More information about the freebsd-hackers mailing list