Skip to content
This repository was archived by the owner on May 10, 2019. It is now read-only.

Commit

Permalink
Fix 'make check' target
Browse files Browse the repository at this point in the history
  • Loading branch information
richq committed Jul 27, 2014
1 parent 72cddcf commit 9d379be
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion jni/read_maps.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,12 @@
#include <stdlib.h>
#include "read_maps.h"

#ifdef ANDROID
#include <android/log.h> /* for __android_log_print, ANDROID_LOG_INFO, etc */

#define LOGI(...) __android_log_print(ANDROID_LOG_INFO, "PROFILING", __VA_ARGS__)
#else
#define LOGI(...) do { printf(__VA_ARGS__) ; printf("\n"); } while (0)
#endif

static char s_line[256];
extern int opt_is_shared_lib;
Expand Down
2 changes: 2 additions & 0 deletions test/test_read_maps.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
#include <assert.h>
#include "read_maps.h"

int opt_is_shared_lib = 1;

static void test_read_maps(void)
{
FILE *fp = fopen("maps.txt", "r");
Expand Down

0 comments on commit 9d379be

Please sign in to comment.