1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-14 23:46:10 +00:00
freebsd-ports/archivers/hpack.non-usa.only/files/patch-ae
Steve Price b8eafda329 Honor PREFIX and split up patches one patch for each file.
PR:		12056
Submitted by:	Nick Hibma <nick.hibma@jrc.it>
1999-12-29 08:52:12 +00:00

32 lines
1.1 KiB
Plaintext

--- language/language.c.orig Wed Sep 22 21:23:20 1993
+++ language/language.c Tue Dec 28 20:01:38 1999
@@ -188,7 +188,7 @@
/* Process user response */
response = hgetch();
response = toupper( response ); /* Damn macros */
- blankLine( screenWidth );
+ blankLine( screenWidth - 1 );
if( response == RESPONSE_QUIT )
return;
lineNo -= ( response == ' ' ) ? screenHeight : 1;
@@ -268,6 +268,9 @@
if( ( inFD = hopen( fileNamePtr, O_RDONLY | S_DENYWR | A_RANDSEQ ) ) == ERROR )
return( ERROR );
#elif defined( __UNIX__ )
+ fileNamePtr = getFirstKeyPath( "%%PREFIX%%/lib/hpack", DATA_FILENAME );
+ if( ( inFD = hopen( fileNamePtr, O_RDONLY | S_DENYWR | A_RANDSEQ ) ) != ERROR )
+ goto found;
/* Build path to language file and try and process it */
fileNamePtr = getFirstKeyPath( getenv( "PATH" ), DATA_FILENAME );
while( fileNamePtr != NULL )
@@ -290,6 +293,9 @@
return( ERROR ); /* Couldn't find/open input file */
}
#endif /* System-specific handling of how to find language defn.file */
+#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
+found:
+#endif
setInputFD( inFD );
resetFastIn();