summaryrefslogtreecommitdiffstats
path: root/src/libnetdata/os/setenv.h
blob: 78e7224ded04f88b6aec4bf5ebbdec869d0211ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// SPDX-License-Identifier: GPL-3.0-or-later

#ifndef NETDATA_SETENV_H
#define NETDATA_SETENV_H

#include "config.h"

#ifndef HAVE_SETENV
int os_setenv(const char *name, const char *value, int overwrite);
#define setenv(name, value, overwrite) os_setenv(name, value, overwrite)
#endif

void nd_setenv(const char *name, const char *value, int overwrite);

#endif //NETDATA_SETENV_H