Skip to content

Commit

Permalink
memory/patcher: declare __curbrk as extern in order not to generate a…
Browse files Browse the repository at this point in the history
…n (unitialized) common symbol
  • Loading branch information
ggouaillardet committed May 16, 2016
1 parent e0fef39 commit 4e21933
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opal/mca/memory/patcher/memory_patcher_component.c
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ static int intercept_madvise (void *start, size_t length, int advice)
#if defined SYS_brk

#if OPAL_MEMORY_PATCHER_HAVE___CURBRK
void *__curbrk; /* in libc */
extern void *__curbrk; /* in libc */
#endif

static int (*original_brk) (void *);
Expand Down

0 comments on commit 4e21933

Please sign in to comment.