Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
Icecast-Server
Commits
8f6c0236
Commit
8f6c0236
authored
Oct 20, 2001
by
Jack Moffitt
Browse files
Win32 fixes. Look how portable this was ;) Just header stuff and some defines.
Whee! svn path=/trunk/icecast/; revision=2195
parent
71539aa4
Changes
9
Hide whitespace changes
Inline
Side-by-side
src/config.c
View file @
8f6c0236
...
...
@@ -16,11 +16,17 @@
#define CONFIG_DEFAULT_TOUCH_FREQ 5
#define CONFIG_DEFAULT_HOSTNAME "localhost"
#define CONFIG_DEFAULT_PORT 8888
#define CONFIG_DEFAULT_BASE_DIR "/usr/local/icecast"
#define CONFIG_DEFAULT_LOG_DIR "/usr/local/icecast/logs"
#define CONFIG_DEFAULT_ACCESS_LOG "access.log"
#define CONFIG_DEFAULT_ERROR_LOG "error.log"
#ifndef _WIN32
#define CONFIG_DEFAULT_BASE_DIR "/usr/local/icecast"
#define CONFIG_DEFAULT_LOG_DIR "/usr/local/icecast/logs"
#else
#define CONFIG_DEFAULT_BASE_DIR ".\\"
#define CONFIG_DEFAULT_LOG_DIR ".\\logs"
#endif
ice_config_t
_configuration
;
char
*
_config_filename
;
...
...
src/connection.c
View file @
8f6c0236
#include
<stdio.h>
#include
<stdlib.h>
#include
<string.h>
#include
<
sys/
time.h>
#include
<time.h>
#include
<sys/types.h>
#ifndef _WIN32
#include
<sys/time.h>
#include
<sys/socket.h>
#include
<netinet/in.h>
#include
<time.h>
#else
#define snprintf _snprintf
#define strcasecmp stricmp
#endif
#include
"os.h"
...
...
src/connection.h
View file @
8f6c0236
...
...
@@ -6,7 +6,7 @@ typedef struct connection_tag
unsigned
long
id
;
time_t
con_time
;
long
long
sent_bytes
;
uint64_t
sent_bytes
;
int
sock
;
int
error
;
...
...
src/format.c
View file @
8f6c0236
...
...
@@ -6,6 +6,7 @@
#include
<stdlib.h>
#include
<string.h>
#include
<time.h>
#include
"connection.h"
#include
"refbuf.h"
...
...
src/logging.c
View file @
8f6c0236
...
...
@@ -11,6 +11,10 @@
#include
"logging.h"
#ifdef _WIN32
#define snprintf _snprintf
#endif
/* the global log descriptors */
int
errorlog
;
int
accesslog
;
...
...
src/main.c
View file @
8f6c0236
...
...
@@ -20,6 +20,9 @@
#include
"stats.h"
#include
"logging.h"
#ifdef _WIN32
#define snprintf _snprintf
#undef CATMODULE
#define CATMODULE "main"
...
...
src/source.c
View file @
8f6c0236
...
...
@@ -3,9 +3,14 @@
#include
<string.h>
#include
<unistd.h>
#include
<sys/types.h>
#include
<ogg/ogg.h>
#ifndef _WIN32
#include
<sys/time.h>
#include
<sys/socket.h>
#include
<ogg/ogg.h>
#else
#include
<window.h>
#endif
#include
"thread.h"
#include
"avl.h"
...
...
src/stats.c
View file @
8f6c0236
...
...
@@ -19,7 +19,7 @@
#include
"client.h"
#include
"stats.h"
#define vsnprintf _vsnprintf
typedef
struct
_event_listener_tag
{
...
...
src/util.c
View file @
8f6c0236
#include
<sys/time.h>
#include
<sys/types.h>
#include
<sys/socket.h>
#ifndef _WIN32
#include
<sys/time.h>
#include
<sys/socket.h>
#include
<unistd.h>
#else
#include
<windows.h>
#endif
#include
"sock.h"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment