Skip to content

Commit ad44a05

Browse files
committed
proper compile on gcc 4.8
(cherry picked from commit 421e3e3)
1 parent 0a3c97b commit ad44a05

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

dprint.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,5 +445,10 @@ static inline char* dp_time(void)
445445
#endif /*SUN_PRO_C*/
446446
#endif
447447

448+
#define report_programming_bug(format, args...) \
449+
LM_CRIT("\n>>> " format"\nIt seems you have hit a programming bug.\n" \
450+
"Please help us make OpenSIPS better by reporting it at " \
451+
"https://github.com/OpenSIPS/opensips/issues\n\n", ##args);
452+
#define LM_BUG report_programming_bug
448453

449454
#endif /* ifndef dprint_h */

error.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,6 @@
5858

5959
#define E_BAD_SERVER -500 /*!< error in server */
6060

61-
#define report_programming_bug(format, args...) \
62-
LM_CRIT("\n>>> " format"\nIt seems you have hit a programming bug.\n" \
63-
"Please help us make OpenSIPS better by reporting it at " \
64-
"https://github.com/OpenSIPS/opensips/issues\n\n", ##args);
65-
#define LM_BUG report_programming_bug
66-
6761
/*
6862
* portable macro which prevents "unused variable" compiler warnings
6963
* when defining certain flags, e.g. NO_LOG, NO_DEBUG

pt.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#include <sys/types.h>
3232
#include <unistd.h>
3333

34-
#include "statistics.h"
34+
struct stat_var_;
3535

3636
#define MAX_PT_DESC 128
3737

@@ -44,7 +44,7 @@ struct process_table {
4444
int default_debug; /* used when resetting the log level */
4545
int debug; /* logging level of this process */
4646

47-
stat_var *load;
47+
struct stat_var_ *load;
4848
};
4949

5050
typedef void(*forked_proc_func)(int i);

0 commit comments

Comments
 (0)