Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 609508 Details for
Bug 706966
app-misc/spacenavd-0.6 : fails to build with -fno-common or gcc-10
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to fix compilation with -fno-common
fno-common.patch (text/plain), 1.38 KB, created by
Thomas Albers
on 2020-01-30 23:56:29 UTC
(
hide
)
Description:
Patch to fix compilation with -fno-common
Filename:
MIME Type:
Creator:
Thomas Albers
Created:
2020-01-30 23:56:29 UTC
Size:
1.38 KB
patch
obsolete
>diff --git a/src/serial/sball.c b/src/serial/sball.c >index cfbbdd1..aa33114 100644 >--- a/src/serial/sball.c >+++ b/src/serial/sball.c >@@ -60,7 +60,7 @@ struct event { > }; > > static struct event *ev_free_list; >-int evpool_size; >+int sball_evpool_size =0; > > static struct event *alloc_event(void); > static void free_event(struct event *ev); >@@ -662,16 +662,16 @@ static struct event *alloc_event(void) > ev_free_list = ev->next; > } else { > ev = malloc(sizeof *ev); >- evpool_size++; >+ sball_evpool_size++; > } > return ev; > } > > static void free_event(struct event *ev) > { >- if(evpool_size > 512) { >+ if(sball_evpool_size > 512) { > free(ev); >- evpool_size--; >+ sball_evpool_size--; > } else { > ev->next = ev_free_list; > ev_free_list = ev; >diff --git a/src/spnavd.c b/src/spnavd.c >index c51b120..3c7278a 100644 >--- a/src/spnavd.c >+++ b/src/spnavd.c >@@ -48,6 +48,9 @@ static char *fix_path(char *str); > static char *cfgfile = DEF_CFGFILE; > static char *logfile = DEF_LOGFILE; > >+struct cfg cfg; >+int verbose; >+ > int main(int argc, char **argv) > { > int i, pid, ret, become_daemon = 1; >diff --git a/src/spnavd.h b/src/spnavd.h >index fa0a916..99672af 100644 >--- a/src/spnavd.h >+++ b/src/spnavd.h >@@ -47,9 +47,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. > > #endif > >- >- >-struct cfg cfg; >-int verbose; >+extern struct cfg cfg; >+extern int verbose; > > #endif /* SPNAVD_H_ */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 706966
:
606888
|
606890
|
606892
|
606894
|
606896
|
606898
| 609508