1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-05 22:43:24 +00:00
freebsd-ports/print/bibview/files/patch-ac
Thomas Gellekum 1bc1187e0f Import bibview port. bibview allows to edit bibliographic databases
for use with BibTeX.

PR:		4133
Submitted by:	"David A. Bader" <dbader@umiacs.umd.edu>
1997-09-12 08:11:56 +00:00

38 lines
936 B
Plaintext

--- FileNom.c.orig Thu May 4 18:15:11 1995
+++ FileNom.c Thu Sep 11 13:08:28 1997
@@ -822,20 +822,20 @@
Dimension height, internalHeight, rowSpacing;
int num, newNum, idx;
struct dirent **namelist;
- #ifndef HAVE_DIR
+#ifndef HAVE_DIR
DIR *dirp;
struct dirent *direntp;
int direntp_size;
- #else
+#else
extern int alphasort();
- #endif
+#endif
char buf[MAXPATHLEN], *bp;
String name;
struct stat fstats;
unsigned int namlen;
- #ifdef HAVE_DIR
+#ifdef HAVE_DIR
num = scandir(CurrentDir(fnw), &namelist, (int(*)())0, alphasort);
- #else
+#else
/* Read the directory `CurrentDir(fnw)'
and set the `dirent's in `namelist'. */
dirp = opendir( CurrentDir(fnw) );
@@ -860,7 +860,7 @@
/* Sort the directory entries in `namelist'. */
qsort( namelist, num, sizeof(struct dirent*), direntpcmp );
- #endif
+#endif
if (num <= 0)
{