Mercurial > pidgin
comparison src/proxy.c @ 9738:d9e8d420e9fe
[gaim-migrate @ 10600]
Move variable declarations inside the 3ifdef in cope_with_gdb_brokenness.
Thanks deryni.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Wed, 11 Aug 2004 00:20:28 +0000 |
parents | f44ae9331afc |
children | 465d19aad04b |
comparison
equal
deleted
inserted
replaced
9737:a19b6a7682ef | 9738:d9e8d420e9fe |
---|---|
390 _exit(1); | 390 _exit(1); |
391 } | 391 } |
392 | 392 |
393 static void cope_with_gdb_brokenness() | 393 static void cope_with_gdb_brokenness() |
394 { | 394 { |
395 #ifdef __linux__ | |
395 static gboolean already_done = FALSE; | 396 static gboolean already_done = FALSE; |
396 char s[256], e[512]; | 397 char s[256], e[512]; |
397 int n; | 398 int n; |
398 pid_t ppid; | 399 pid_t ppid; |
399 | 400 |
400 #ifdef __linux__ | |
401 if(already_done) | 401 if(already_done) |
402 return; | 402 return; |
403 already_done = TRUE; | 403 already_done = TRUE; |
404 ppid = getppid(); | 404 ppid = getppid(); |
405 snprintf(s, sizeof(s), "/proc/%d/exe", ppid); | 405 snprintf(s, sizeof(s), "/proc/%d/exe", ppid); |