mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
Fix static data to link with -fno-common
-fno-common is the new default in GCC 10, replacing -fcommon in GCC <= 9, so static data must only be allocated once. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Romain Dolbeau <romain.dolbeau@european-processor-initiative.eu> Closes #9943
This commit is contained in:
@@ -65,6 +65,8 @@ static boolean_t smb_available(void);
|
||||
|
||||
static sa_fstype_t *smb_fstype;
|
||||
|
||||
smb_share_t *smb_shares;
|
||||
|
||||
/*
|
||||
* Retrieve the list of SMB shares.
|
||||
*/
|
||||
|
||||
+1
-1
@@ -44,6 +44,6 @@ typedef struct smb_share_s {
|
||||
struct smb_share_s *next;
|
||||
} smb_share_t;
|
||||
|
||||
smb_share_t *smb_shares;
|
||||
extern smb_share_t *smb_shares;
|
||||
|
||||
void libshare_smb_init(void);
|
||||
|
||||
Reference in New Issue
Block a user