mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 13:12:03 +00:00
sun studio/solaris build fixes
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5290 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -53,8 +53,10 @@
|
||||
#define __EXTENSIONS__ 1
|
||||
#ifndef MACOSX
|
||||
#ifndef _XOPEN_SOURCE
|
||||
#ifndef __cplusplus
|
||||
#define _XOPEN_SOURCE 600
|
||||
#endif
|
||||
#endif
|
||||
#ifndef __BSD_VISIBLE
|
||||
#define __BSD_VISIBLE 1
|
||||
#endif
|
||||
|
||||
@@ -26,7 +26,7 @@ class CoreSession {
|
||||
switch_input_args_t *ap;
|
||||
public:
|
||||
CoreSession(char *uuid);
|
||||
CoreSession(switch_core_session_t *session);
|
||||
CoreSession(switch_core_session_t *new_session);
|
||||
~CoreSession();
|
||||
switch_core_session_t *session;
|
||||
switch_channel_t *channel;
|
||||
|
||||
@@ -562,7 +562,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_digit_stream_parser_set_terminator(sw
|
||||
typedef enum {
|
||||
SWITCH_IVR_MENU_FLAG_FALLTOMAIN = (1 << 0),
|
||||
SWITCH_IVR_MENU_FLAG_FREEPOOL = (1 << 1),
|
||||
SWITCH_IVR_MENU_FLAG_STACK = (1 << 2),
|
||||
SWITCH_IVR_MENU_FLAG_STACK = (1 << 2)
|
||||
} switch_ivr_menu_flags;
|
||||
/* Actions are either set in switch_ivr_menu_bind_function or returned by a callback */
|
||||
typedef enum {
|
||||
@@ -575,7 +575,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_digit_stream_parser_set_terminator(sw
|
||||
SWITCH_IVR_ACTION_BACK, /* Go back 1 menu. */
|
||||
SWITCH_IVR_ACTION_TOMAIN, /* Go back to the top level menu. */
|
||||
SWITCH_IVR_ACTION_TRANSFER, /* Transfer caller to another ext. */
|
||||
SWITCH_IVR_ACTION_NOOP, /* No operation */
|
||||
SWITCH_IVR_ACTION_NOOP /* No operation */
|
||||
} switch_ivr_action_t;
|
||||
struct switch_ivr_menu;
|
||||
typedef switch_ivr_action_t switch_ivr_menu_action_function_t(struct switch_ivr_menu *, char *, char *, size_t, void *);
|
||||
|
||||
@@ -106,12 +106,12 @@ typedef struct {
|
||||
typedef struct {
|
||||
int16_t type;
|
||||
uint16_t length;
|
||||
char value[];
|
||||
char value[1];
|
||||
} switch_stun_packet_attribute_t;
|
||||
|
||||
typedef struct {
|
||||
switch_stun_packet_header_t header;
|
||||
uint8_t first_attribute[];
|
||||
uint8_t first_attribute[1];
|
||||
} switch_stun_packet_t;
|
||||
|
||||
typedef struct {
|
||||
|
||||
@@ -161,7 +161,7 @@ typedef enum {
|
||||
SST_POSTAL_ADDRESS,
|
||||
SST_ACCOUNT_NUMBER,
|
||||
SST_NAME_SPELLED,
|
||||
SST_NAME_PHONETIC,
|
||||
SST_NAME_PHONETIC
|
||||
} switch_say_type_t;
|
||||
|
||||
typedef enum {
|
||||
@@ -196,7 +196,7 @@ typedef enum {
|
||||
SWITCH_ABC_TYPE_READ,
|
||||
SWITCH_ABC_TYPE_WRITE,
|
||||
SWITCH_ABC_TYPE_WRITE_REPLACE,
|
||||
SWITCH_ABC_TYPE_CLOSE,
|
||||
SWITCH_ABC_TYPE_CLOSE
|
||||
} switch_abc_type_t;
|
||||
|
||||
typedef struct {
|
||||
@@ -332,7 +332,7 @@ typedef enum {
|
||||
typedef enum {
|
||||
SWITCH_PRIORITY_NORMAL,
|
||||
SWITCH_PRIORITY_LOW,
|
||||
SWITCH_PRIORITY_HIGH,
|
||||
SWITCH_PRIORITY_HIGH
|
||||
} switch_priority_t;
|
||||
|
||||
/*!
|
||||
@@ -702,7 +702,7 @@ SWITCH_DIRECTORY_FLAG_FREE_POOL = (1 << 0) - Free interface's pool on destruct
|
||||
</pre>
|
||||
*/
|
||||
typedef enum {
|
||||
SWITCH_DIRECTORY_FLAG_FREE_POOL = (1 << 0),
|
||||
SWITCH_DIRECTORY_FLAG_FREE_POOL = (1 << 0)
|
||||
|
||||
} switch_directory_flag_t;
|
||||
|
||||
@@ -732,7 +732,7 @@ SWITCH_TIMER_FLAG_FREE_POOL = (1 << 0) - Free timer's pool on destruction
|
||||
</pre>
|
||||
*/
|
||||
typedef enum {
|
||||
SWITCH_TIMER_FLAG_FREE_POOL = (1 << 0),
|
||||
SWITCH_TIMER_FLAG_FREE_POOL = (1 << 0)
|
||||
} switch_timer_flag_t;
|
||||
|
||||
|
||||
@@ -786,7 +786,7 @@ typedef enum {
|
||||
} switch_file_flag_t;
|
||||
|
||||
typedef enum {
|
||||
SWITCH_IO_FLAG_NOOP = 0,
|
||||
SWITCH_IO_FLAG_NOOP = 0
|
||||
} switch_io_flag_t;
|
||||
|
||||
/* make sure this is synced with the EVENT_NAMES array in switch_event.c
|
||||
|
||||
Reference in New Issue
Block a user