diff options
author | Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com> | 2019-05-23 11:38:25 -0500 |
---|---|---|
committer | Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com> | 2019-05-23 11:38:25 -0500 |
commit | 6b5a2730a5d1f658e027af0028bd06bf1a956212 (patch) | |
tree | 22ace731b9422cae5a67d6983f8f7a120a2b9079 /bin/expr/expr.y | |
parent | 1888d833acac54bc81e87d2052385430472a65f6 (diff) | |
download | userland-6b5a2730a5d1f658e027af0028bd06bf1a956212.tar.gz userland-6b5a2730a5d1f658e027af0028bd06bf1a956212.tar.bz2 userland-6b5a2730a5d1f658e027af0028bd06bf1a956212.tar.xz userland-6b5a2730a5d1f658e027af0028bd06bf1a956212.zip |
bin/expr: make less incompatible with Linux
Diffstat (limited to 'bin/expr/expr.y')
-rw-r--r-- | bin/expr/expr.y | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/bin/expr/expr.y b/bin/expr/expr.y index 2bc4ad1..e9b6212 100644 --- a/bin/expr/expr.y +++ b/bin/expr/expr.y @@ -30,11 +30,6 @@ */ %{ -#include <sys/cdefs.h> -#ifndef lint -__RCSID("$NetBSD: expr.y,v 1.45 2018/06/27 17:23:36 kamil Exp $"); -#endif /* not lint */ - #include <sys/types.h> #include <err.h> @@ -45,11 +40,12 @@ __RCSID("$NetBSD: expr.y,v 1.45 2018/06/27 17:23:36 kamil Exp $"); #include <stdarg.h> #include <stdio.h> #include <stdlib.h> +#include <bsd/stdlib.h> #include <string.h> static const char * const *av; -static void yyerror(const char *, ...) __dead; +static void yyerror(const char *, ...); static int yylex(void); static int is_zero_or_null(const char *); static int is_integer(const char *); |