-
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Gcc 10 defaults to -fno-common, leading to multiple global definitions to cause a linker error.
- Loading branch information
Showing
3 changed files
with
29 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
/* | ||
Copyright (C) 2003 Ferdi Franceschini <[email protected]> | ||
2020 Axel Beckert <[email protected]> | ||
2023 Michal Grezl <[email protected]> | ||
This program is free software; you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
|
@@ -32,6 +34,24 @@ | |
|
||
sigset_t mask_sigchld; | ||
|
||
/* fix for gcc 10 */ | ||
|
||
enum { | ||
no_errors, | ||
dpid_srs_addrinuse /* dpid service request socket address already in use */ | ||
} dpi_errno; | ||
|
||
char *srs_name; | ||
int numdpis; | ||
fd_set sock_set; | ||
struct dp *dpi_attr_list; | ||
Dlist *services_list; | ||
int numsocks; | ||
int srs_fd; | ||
; | ||
|
||
// end of fix | ||
|
||
|
||
/* Start a dpi filter plugin after accepting the pending connection | ||
* \Return | ||
|