Merge pull request #10 from tuxillo/patch-2

Fix build for DragonFly BSD
This commit is contained in:
Jesse Smith 2017-02-15 09:23:58 -04:00 committed by GitHub
commit fb1108b586

3
env.c
View file

@ -49,6 +49,9 @@ envcmp(struct envnode *a, struct envnode *b)
{
return strcmp(a->key, b->key);
}
#ifdef __DragonFly__
RB_PROTOTYPE_STATIC(envtree, envnode, node, envcmp);
#endif
RB_GENERATE_STATIC(envtree, envnode, node, envcmp)
struct env *createenv(char **);