Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Icecast-Server
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
93
Issues
93
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
External Wiki
External Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xiph.Org
Icecast-Server
Commits
8f6c0236
Commit
8f6c0236
authored
Oct 20, 2001
by
Jack Moffitt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Showing
9 changed files
with
36 additions
and
9 deletions
+36
-9
src/config.c
src/config.c
+8
-2
src/connection.c
src/connection.c
+8
-2
src/connection.h
src/connection.h
+1
-1
src/format.c
src/format.c
+1
-0
src/logging.c
src/logging.c
+4
-0
src/main.c
src/main.c
+3
-0
src/source.c
src/source.c
+6
-1
src/stats.c
src/stats.c
+1
-1
src/util.c
src/util.c
+4
-2
No files found.
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
Markdown
is supported
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