summaryrefslogtreecommitdiff
path: root/editors/mg/patches/patch-fgetln.c
blob: e8d143f0683b3f8baaf0dea8081b8f6e2bf4dd2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-fgetln.c,v 1.1 2014/07/07 18:06:58 jperkin Exp $

SunOS needs fgetln support.

--- fgetln.c.orig	2008-12-30 12:41:23.000000000 +0000
+++ fgetln.c
@@ -27,7 +27,7 @@
 #include <stdio.h>
 #include <string.h>
 
-#if defined (__GLIBC__) || defined (__CYGWIN__)  /* FreeWRT: only build
+#if defined (__GLIBC__) || defined (__CYGWIN__) || defined(__sun) /* FreeWRT: only build
 						      this where needed */
 char *fgetln(FILE *, size_t *);