Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make MAX definition conditional to make FreeBSD happy
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Aug 31, 2016
1 parent 79465d7 commit adad6fd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions openconnect-internal.h
Expand Up @@ -117,7 +117,10 @@
#define SHA1_SIZE 20
#define MD5_SIZE 16

/* FreeBSD provides this in <sys/param.h> */
#ifndef MAX
#define MAX(x,y) ((x)>(y))?(x):(y)
#endif
/****************************************************************************/

struct pkt {
Expand Down

0 comments on commit adad6fd

Please sign in to comment.