Skip to content

Commit

Permalink
cpu-test: Add unistd.h #include for getopt()
Browse files Browse the repository at this point in the history
  • Loading branch information
DonDiego committed Aug 13, 2014
1 parent 30e50c5 commit 3532405
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libavutil/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,10 @@ int av_cpu_count(void)
#ifdef TEST

#include <stdio.h>
#if HAVE_UNISTD_H
#include <unistd.h>
#endif

#include "avstring.h"

#if !HAVE_GETOPT
Expand Down

0 comments on commit 3532405

Please sign in to comment.