diff options
Diffstat (limited to 'apps/xcalc/math.c')
-rw-r--r-- | apps/xcalc/math.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/xcalc/math.c b/apps/xcalc/math.c index c8ac1a846..706a3e7d8 100644 --- a/apps/xcalc/math.c +++ b/apps/xcalc/math.c @@ -17,6 +17,7 @@ */ #include "xcalc.h" +#include <unistd.h> #ifndef M_PI /* sometimes defined in math.h */ #define M_PI 3.14159265358979323846 @@ -80,7 +81,7 @@ static int priority(int op); #ifndef HAVE_STRLCPY /* Close enough for the short strings copied in xcalc */ -static inline size_t +static __inline size_t strlcpy(char *dst, const char *src, size_t size) { strncpy(dst, src, size); |