1 // Copyright (C) 2010-2016 Joel Rosdahl
3 // This program is free software; you can redistribute it and/or modify it
4 // under the terms of the GNU General Public License as published by the Free
5 // Software Foundation; either version 3 of the License, or (at your option)
8 // This program is distributed in the hope that it will be useful, but WITHOUT
9 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13 // You should have received a copy of the GNU General Public License along with
14 // this program; if not, write to the Free Software Foundation, Inc., 51
15 // Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 #ifndef CCACHE_SYSTEM_H
18 #define CCACHE_SYSTEM_H
23 #ifdef HAVE_SYS_MMAN_H
27 #include <sys/types.h>
28 #ifdef HAVE_SYS_WAIT_H
51 extern char **environ;
58 int rpl_vsnprintf(char *, size_t, const char *, va_list);
59 #define vsnprintf rpl_vsnprintf
62 int rpl_snprintf(char *, size_t, const char *, ...);
63 #define snprintf rpl_snprintf
66 int rpl_vasprintf(char **, const char *, va_list);
67 #define vasprintf rpl_vasprintf
70 int rpl_asprintf(char **, const char *, ...);
71 #define asprintf rpl_asprintf
74 #endif // CCACHE_SYSTEM_H