pkgsrc - initial commit
[pkgsrc.git] / archivers / hpack / patches / patch-ad
1 $NetBSD: patch-ad,v 1.2 2002/03/09 03:27:51 yyamano Exp $
2
3 --- language/language.c.orig    Thu Sep 23 11:23:20 1993
4 +++ language/language.c
5 @@ -188,7 +188,7 @@
6                                 /* Process user response */
7                                 response = hgetch();
8                                 response = toupper( response ); /* Damn macros */
9 -                               blankLine( screenWidth );
10 +                               blankLine( screenWidth - 1 );
11                                 if( response == RESPONSE_QUIT )
12                                         return;
13                                 lineNo -= ( response == ' ' ) ? screenHeight : 1;
14 @@ -268,6 +268,9 @@
15         if( ( inFD = hopen( fileNamePtr, O_RDONLY | S_DENYWR | A_RANDSEQ ) ) == ERROR )
16                 return( ERROR );
17  #elif defined( __UNIX__ )
18 +       fileNamePtr = getFirstKeyPath( PREFIX "/share/hpack", DATA_FILENAME );
19 +       if( ( inFD = hopen( fileNamePtr, O_RDONLY | S_DENYWR | A_RANDSEQ ) ) != ERROR )
20 +               goto found;
21         /* Build path to language file and try and process it */
22         fileNamePtr = getFirstKeyPath( getenv( "PATH" ), DATA_FILENAME );
23         while( fileNamePtr != NULL )
24 @@ -290,6 +293,9 @@
25                         return( ERROR );                /* Couldn't find/open input file */
26                 }
27  #endif /* System-specific handling of how to find language defn.file */
28 +#if defined(__UNIX__)
29 +found:
30 +#endif
31         setInputFD( inFD );
32         resetFastIn();
33