aboutsummaryrefslogtreecommitdiffstats
path: root/erts/etc
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <egil@erlang.org>2014-06-24 00:44:36 +0200
committerBjörn-Egil Dahlberg <egil@erlang.org>2014-06-24 00:44:36 +0200
commit353cbeecbb396aa641424b036bc0b7f2519db3e2 (patch)
treeb5013f52af25d8da0e4e2de77190e935fcce338c /erts/etc
parent2528bca8db70a917ffdb1801df1181eff0d0e089 (diff)
downloadotp-353cbeecbb396aa641424b036bc0b7f2519db3e2.tar.gz
otp-353cbeecbb396aa641424b036bc0b7f2519db3e2.tar.bz2
otp-353cbeecbb396aa641424b036bc0b7f2519db3e2.zip
erts: Fix tentative-definition-incomplete-type
Diffstat (limited to 'erts/etc')
-rw-r--r--erts/etc/common/run_erl_common.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/erts/etc/common/run_erl_common.c b/erts/etc/common/run_erl_common.c
index dc55c2bea4..580b6cc3c5 100644
--- a/erts/etc/common/run_erl_common.c
+++ b/erts/etc/common/run_erl_common.c
@@ -74,15 +74,6 @@
* run_erl multiple times with different global variables without them
* effecting eachother.
*/
-typedef struct run_erl_ run_erl;
-
-#ifdef __OSE__
-static OSPPDKEY run_erl_pp_key;
-#define RE_DATA (*(run_erl**)ose_get_ppdata(run_erl_pp_key))
-#else
-static run_erl re;
-#define RE_DATA (&re)
-#endif
#define STATUSFILE (RE_DATA->statusfile)
#define LOG_DIR (RE_DATA->log_dir)
@@ -116,6 +107,16 @@ struct run_erl_ {
unsigned protocol_ver;
};
+typedef struct run_erl_ run_erl;
+
+#ifdef __OSE__
+static OSPPDKEY run_erl_pp_key;
+#define RE_DATA (*(run_erl**)ose_get_ppdata(run_erl_pp_key))
+#else
+static run_erl re;
+#define RE_DATA (&re)
+#endif
+
/* prototypes */
static int next_log(int log_num);