diff options
author | rsc <devnull@localhost> | 2006-04-04 11:58:52 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2006-04-04 11:58:52 +0000 |
commit | 838874f06406b0c3c57c03176d0c7c7caab937d5 (patch) | |
tree | 073d8c7c321caf7bf63f38a56f6a24e3a505e6bd | |
parent | d7cad2acdb2d76ba5767113079ceb600502616ff (diff) | |
download | plan9port-838874f06406b0c3c57c03176d0c7c7caab937d5.tar.gz plan9port-838874f06406b0c3c57c03176d0c7c7caab937d5.tar.bz2 plan9port-838874f06406b0c3c57c03176d0c7c7caab937d5.zip |
get strtoll on freebsd
-rw-r--r-- | include/u.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/u.h b/include/u.h index 466f3eab..ac9699ca 100644 --- a/include/u.h +++ b/include/u.h @@ -20,6 +20,14 @@ extern "C" { # define _XOPEN_SOURCE 1000 # define _XOPEN_SOURCE_EXTENDED 1 #endif +#if defined(__FreeBSD__) +# include <sys/cdefs.h> + /* for strtoll */ +# undef __ISO_C_VISIBLE +# define __ISO_C_VISIBLE 1999 +# undef __LONG_LONG_SUPPORTED +# define __LONG_LONG_SUPPORTED +#endif #define _LARGEFILE64_SOURCE 1 #define _FILE_OFFSET_BITS 64 |