Skip to content

Commit

Permalink
Fix build for DragonFly BSD
Browse files Browse the repository at this point in the history
Until our sys/tree.h gets synced.
  • Loading branch information
tuxillo authored Feb 15, 2017
1 parent a15e6ed commit 89ef570
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions env.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 **);
Expand Down

0 comments on commit 89ef570

Please sign in to comment.