aboutsummaryrefslogtreecommitdiff
path: root/dpid/dpid_common.h
diff options
context:
space:
mode:
authorwalley <walley@walley.org>2023-01-24 10:03:48 +0100
committerRodrigo Arias <rodarima@gmail.com>2023-06-02 13:19:10 +0200
commit4d35673f69d837db894305f3b3b618a26d0277c7 (patch)
tree09ef3acf1f2a292cc9178f870df36c52c40df0fa /dpid/dpid_common.h
parent479a133f0f6fee3138ea1c0316a1689e8ea26d99 (diff)
Fix for gcc 10
Gcc 10 defaults to -fno-common, leading to multiple global definitions to cause a linker error.
Diffstat (limited to 'dpid/dpid_common.h')
-rw-r--r--dpid/dpid_common.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/dpid/dpid_common.h b/dpid/dpid_common.h
index 6df55ae1..fd0e094f 100644
--- a/dpid/dpid_common.h
+++ b/dpid/dpid_common.h
@@ -35,12 +35,9 @@
#define CKD_WRITE(fd, msg) ckd_write(fd, msg, __FILE__, __LINE__)
#define CKD_CLOSE(fd) ckd_close(fd, __FILE__, __LINE__)
-
/*! Error codes for dpid */
-enum {
- no_errors,
- dpid_srs_addrinuse /* dpid service request socket address already in use */
-} dpi_errno;
+//fix for gcc 10
+extern enum dpi_errno;
/*! Intended for identifying dillo plugins
* and related files