Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configure: fix tls detection #94

Merged
merged 1 commit into from
Sep 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/configure
Original file line number Diff line number Diff line change
Expand Up @@ -5232,7 +5232,7 @@ else
#include <unistd.h>
extern __thread int i;
static int res1, res2;
void thread_main (void *arg) {
void *thread_main (void *arg) {
i = (int)arg;
sleep (1);
if ((int)arg == 1)
Expand Down Expand Up @@ -5425,7 +5425,7 @@ else
int gettid() {
return syscall( SYS_gettid );
}
int doThreadOne( void * v ) {
void *doThreadOne( void * v ) {
struct tms tm;
int status;
while (!done)
Expand All @@ -5435,7 +5435,7 @@ else
threadone = tm.tms_utime;
return 0;
}
int doThreadTwo( void * v ) {
void *doThreadTwo( void * v ) {
struct tms tm;
long i, j = 0xdeadbeef;
int status;
Expand Down
6 changes: 3 additions & 3 deletions src/configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ AC_ARG_WITH(tls,
#include <unistd.h>
extern __thread int i;
static int res1, res2;
void thread_main (void *arg) {
void *thread_main (void *arg) {
i = (int)arg;
sleep (1);
if ((int)arg == 1)
Expand Down Expand Up @@ -849,7 +849,7 @@ AC_ARG_WITH(virtualtimer,
int gettid() {
return syscall( SYS_gettid );
}
int doThreadOne( void * v ) {
void *doThreadOne( void * v ) {
struct tms tm;
int status;
while (!done)
Expand All @@ -859,7 +859,7 @@ AC_ARG_WITH(virtualtimer,
threadone = tm.tms_utime;
return 0;
}
int doThreadTwo( void * v ) {
void *doThreadTwo( void * v ) {
struct tms tm;
long i, j = 0xdeadbeef;
int status;
Expand Down
Loading