Module Name:    src
Committed By:   christos
Date:           Mon Feb 15 16:14:39 UTC 2016

Modified Files:
        src/lib/libedit: config.h sys.h

Log Message:
change tests for fgetln.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/lib/libedit/config.h
cvs rdiff -u -r1.18 -r1.19 src/lib/libedit/sys.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libedit/config.h
diff -u src/lib/libedit/config.h:1.5 src/lib/libedit/config.h:1.6
--- src/lib/libedit/config.h:1.5	Fri Jul 29 16:57:34 2011
+++ src/lib/libedit/config.h	Mon Feb 15 11:14:39 2016
@@ -20,8 +20,8 @@
 /* Define to 1 if you have the <fcntl.h> header file. */
 #define HAVE_FCNTL_H 1
 
-/* Define to 1 if you have the `fgetln' function. */
-#define HAVE_FGETLN 1
+/* Define to 1 if you have the `getline' function. */
+#define HAVE_GETLINE 1
 
 /* Define to 1 if you have the `fork' function. */
 #define HAVE_FORK 1

Index: src/lib/libedit/sys.h
diff -u src/lib/libedit/sys.h:1.18 src/lib/libedit/sys.h:1.19
--- src/lib/libedit/sys.h:1.18	Thu Feb 11 14:21:04 2016
+++ src/lib/libedit/sys.h	Mon Feb 15 11:14:39 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: sys.h,v 1.18 2016/02/11 19:21:04 christos Exp $	*/
+/*	$NetBSD: sys.h,v 1.19 2016/02/15 16:14:39 christos Exp $	*/
 
 /*-
  * Copyright (c) 1992, 1993
@@ -88,8 +88,8 @@ size_t	strlcpy(char *dst, const char *sr
 #endif
 
 #ifndef HAVE_FGETLN
-#define	fgetln libedit_fgetln
-char	*fgetln(FILE *fp, size_t *len);
+#define	getline libedit_getline
+ssize_t	getline(char **line, size_t *len, FILE *fp);
 #endif
 
 #ifndef HAVE_WCSDUP

Reply via email to