mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 18:40:43 +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:
committed by
Tony Hutter
parent
6f42372635
commit
43135b3746
@@ -73,6 +73,8 @@
|
||||
|
||||
#include "statcommon.h"
|
||||
|
||||
libzfs_handle_t *g_zfs;
|
||||
|
||||
static int zpool_do_create(int, char **);
|
||||
static int zpool_do_destroy(int, char **);
|
||||
|
||||
|
||||
@@ -80,7 +80,7 @@ void pool_list_free(zpool_list_t *);
|
||||
int pool_list_count(zpool_list_t *);
|
||||
void pool_list_remove(zpool_list_t *, zpool_handle_t *);
|
||||
|
||||
libzfs_handle_t *g_zfs;
|
||||
extern libzfs_handle_t *g_zfs;
|
||||
|
||||
|
||||
typedef struct vdev_cmd_data
|
||||
|
||||
Reference in New Issue
Block a user