svn commit: r237984 - stable/9/lib/libmagic

David E. O'Brien obrien at FreeBSD.org
Mon Jul 2 09:25:09 UTC 2012


Author: obrien
Date: Mon Jul  2 09:25:08 2012
New Revision: 237984
URL: http://svn.freebsd.org/changeset/base/237984

Log:
  Allow building on FreeBSD 7.
  
  Note that "HAVE_GETLINE" should be #undef'ed in config.h as were not using
  the libc interface -- however that leads to redundant redeclaration compiler
  warnings between the internal file.h and <stdio.h>.

Modified:
  stable/9/lib/libmagic/Makefile

Modified: stable/9/lib/libmagic/Makefile
==============================================================================
--- stable/9/lib/libmagic/Makefile	Mon Jul  2 08:48:58 2012	(r237983)
+++ stable/9/lib/libmagic/Makefile	Mon Jul  2 09:25:08 2012	(r237984)
@@ -13,6 +13,7 @@ MAN=	libmagic.3 magic.5
 SRCS=	apprentice.c apptype.c ascmagic.c cdf.c cdf_time.c compress.c \
 	encoding.c fsmagic.c funcs.c \
 	is_tar.c magic.c print.c readcdf.c readelf.c softmagic.c
+SRCS+=	getline.c
 INCS=	magic.h
 
 MAGICPATH?=	/usr/share/misc


More information about the svn-src-stable-9 mailing list