| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: stdlib.h,v 1.4 2008/10/06 12:36:20 joerg Exp $ */ | | 1 | /* $NetBSD: stdlib.h,v 1.5 2015/04/14 09:23:48 jperkin Exp $ */ |
2 | | | 2 | |
3 | /*- | | 3 | /*- |
4 | * Copyright (c) 2004 The NetBSD Foundation, Inc. | | 4 | * Copyright (c) 2004 The NetBSD Foundation, Inc. |
5 | * All rights reserved. | | 5 | * All rights reserved. |
6 | * | | 6 | * |
7 | * This code is derived from software contributed to The NetBSD Foundation | | 7 | * This code is derived from software contributed to The NetBSD Foundation |
8 | * by Johnny C. Lam. | | 8 | * by Johnny C. Lam. |
9 | * | | 9 | * |
10 | * Redistribution and use in source and binary forms, with or without | | 10 | * Redistribution and use in source and binary forms, with or without |
11 | * modification, are permitted provided that the following conditions | | 11 | * modification, are permitted provided that the following conditions |
12 | * are met: | | 12 | * are met: |
13 | * 1. Redistributions of source code must retain the above copyright | | 13 | * 1. Redistributions of source code must retain the above copyright |
14 | * notice, this list of conditions and the following disclaimer. | | 14 | * notice, this list of conditions and the following disclaimer. |
| @@ -34,26 +34,30 @@ | | | @@ -34,26 +34,30 @@ |
34 | | | 34 | |
35 | #if HAVE_STDLIB_H | | 35 | #if HAVE_STDLIB_H |
36 | # include <stdlib.h> | | 36 | # include <stdlib.h> |
37 | #endif | | 37 | #endif |
38 | #if HAVE_ALLOCA_H | | 38 | #if HAVE_ALLOCA_H |
39 | # include <alloca.h> | | 39 | # include <alloca.h> |
40 | #endif | | 40 | #endif |
41 | | | 41 | |
42 | /* | | 42 | /* |
43 | * Declare functions and macros that may be missing in <stdlib.h> and | | 43 | * Declare functions and macros that may be missing in <stdlib.h> and |
44 | * <alloca.h>. | | 44 | * <alloca.h>. |
45 | */ | | 45 | */ |
46 | | | 46 | |
| | | 47 | #if !HAVE_SETENV |
| | | 48 | int setenv(const char *, const char *, int); |
| | | 49 | #endif |
| | | 50 | |
47 | #if !HAVE_MKSTEMP | | 51 | #if !HAVE_MKSTEMP |
48 | int mkstemp(char *); | | 52 | int mkstemp(char *); |
49 | #endif | | 53 | #endif |
50 | | | 54 | |
51 | #if !HAVE_MKDTEMP | | 55 | #if !HAVE_MKDTEMP |
52 | char *mkdtemp(char *); | | 56 | char *mkdtemp(char *); |
53 | #endif | | 57 | #endif |
54 | | | 58 | |
55 | #if !HAVE_SETPROGNAME | | 59 | #if !HAVE_SETPROGNAME |
56 | const char *getprogname(void); | | 60 | const char *getprogname(void); |
57 | void setprogname(const char *); | | 61 | void setprogname(const char *); |
58 | #endif | | 62 | #endif |
59 | | | 63 | |