Module Name:    othersrc
Committed By:   lukem
Date:           Wed Mar 20 07:24:14 UTC 2013

Modified Files:
        othersrc/usr.bin/tnftp/libnetbsd: ftpglob.h

Log Message:
Remove some unportable assumptions that crept in in rev 1.5.
* Consumers of this header will include "tnftp.h" first which should
  include the appropriate files for the types (size_t, struct stat).
* Always define the extensions; this is a private header included
  as a different name.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 othersrc/usr.bin/tnftp/libnetbsd/ftpglob.h

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

Modified files:

Index: othersrc/usr.bin/tnftp/libnetbsd/ftpglob.h
diff -u othersrc/usr.bin/tnftp/libnetbsd/ftpglob.h:1.5 othersrc/usr.bin/tnftp/libnetbsd/ftpglob.h:1.6
--- othersrc/usr.bin/tnftp/libnetbsd/ftpglob.h:1.5	Sat Mar  2 17:11:31 2013
+++ othersrc/usr.bin/tnftp/libnetbsd/ftpglob.h	Wed Mar 20 07:24:13 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: ftpglob.h,v 1.5 2013/03/02 17:11:31 christos Exp $	*/
+/*	$NetBSD: ftpglob.h,v 1.6 2013/03/20 07:24:13 lukem Exp $	*/
 /* from: NetBSD: glob.h,v 1.26 2010/09/06 14:38:56 christos Exp	*/
 
 /*
@@ -38,9 +38,6 @@
 #ifndef _GLOB_H_
 #define	_GLOB_H_
 
-#include <sys/types.h>
-struct stat;
-
 #ifndef __gl_size_t
 #define __gl_size_t	size_t
 #endif
@@ -82,7 +79,6 @@ typedef struct {
 #define	GLOB_NOMATCH	(-3)	/* No match, and GLOB_NOCHECK was not set. */
 #define	GLOB_NOSYS	(-4)	/* Implementation does not support function. */
 
-#if defined(_NETBSD_SOURCE) || defined(HAVE_NBTOOL_CONFIG_H)
 #define	GLOB_ALTDIRFUNC	0x0040	/* Use alternately specified directory funcs. */
 #define	GLOB_BRACE	0x0080	/* Expand braces ala csh. */
 #define	GLOB_MAGCHAR	0x0100	/* Pattern had globbing characters. */
@@ -96,7 +92,6 @@ typedef struct {
 #define	GLOB_QUOTE	0	/* source compatibility */
 
 #define	GLOB_ABEND	GLOB_ABORTED	/* source compatibility */
-#endif
 
 int	glob(const char *, int, int (*)(const char *, int), glob_t *);
 void	globfree(glob_t *);

Reply via email to