Skip to content

Commit

Permalink
Fix compile error when perf headers are included early
Browse files Browse the repository at this point in the history
I didn't actually track this one down, but was getting some errors
coming out of kernel header files when perf_events.h was included first.
Move it after some std headers that mask the issue.
  • Loading branch information
Brenden Blanco committed Apr 10, 2016
1 parent 33a3daf commit 0f58de5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cc/perf_reader.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
* limitations under the License.
*/

#include <linux/perf_event.h>
#include <poll.h>
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <sys/mman.h>
#include <unistd.h>
#include <linux/perf_event.h>

#include "libbpf.h"
#include "perf_reader.h"
Expand Down

0 comments on commit 0f58de5

Please sign in to comment.