Skip to content

Commit 0819bc2

Browse files
Merge pull request #3 from lestLyy/feature_tmpfix
[libposix,libdebug] fix compile issue
2 parents 4886e38 + 1265036 commit 0819bc2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

gear-lib/libdebug/libdebug.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ static void backtrace_symbols_detail(void *array[], int size)
148148
for (i = 1; i < size; ++i) {//from 1, ignore this file info
149149
fprintf(fp, "%p\n", array[i]);
150150
}
151-
fclose(fp);
151+
pclose(fp);
152152
}
153153
#endif
154154

gear-lib/libposix/libposix.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,8 @@ struct reflect {
271271
void_fn fn;
272272
const char* name;
273273
};
274-
struct reflect __start_reflect;
275-
struct reflect __stop_reflect;
274+
extern struct reflect __start_reflect;
275+
extern struct reflect __stop_reflect;
276276

277277
#define REFLECT_DEF(x) __attribute__((section("reflect"), aligned(sizeof(void*)))) \
278278
struct reflect __##x = {(void_fn)x, #x};

0 commit comments

Comments
 (0)