Skip to content

Commit 15a49e5

Browse files
committed
infocmp.c: fix portability issues (tested against musl)
1 parent 3f02d73 commit 15a49e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

infocmp/infocmp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2828
*/
2929

30-
#include <sys/cdefs.h>
30+
#include <netbsd_sys/cdefs.h>
3131
__RCSID("$NetBSD: infocmp.c,v 1.8 2013/10/01 09:01:49 roy Exp $");
3232

3333
#include <sys/ioctl.h>
@@ -699,7 +699,7 @@ main(int argc, char **argv)
699699
fprintf(stderr,
700700
"usage: %s [-1acnqux] [-A database] [-B database] "
701701
"[-w cols] [term]\n",
702-
getprogname());
702+
argv[0]);
703703
return EXIT_FAILURE;
704704
}
705705
cols--;

0 commit comments

Comments
 (0)