some fixes

This commit is contained in:
Albert Zeyer
2011-04-30 17:22:01 +02:00
parent 1f77088f32
commit 2e4a080d58
3 changed files with 25 additions and 9 deletions
+11 -1
View File
@@ -24,11 +24,21 @@
* OTHER DEALINGS IN THE SOFTWARE.
*/
#include "fcntl.h"
#include <fcntl.h>
#include "socketlib.h"
#include "shairport.h"
#define DONT_USE_HAIRTUNES_MAIN
#include "hairtunes.c" // couldn't figure out how to allow both mains.
#ifndef TRUE
#define TRUE (-1)
#endif
#ifndef FALSE
#define FALSE (0)
#endif
// TEMP
int kCurrentLogLevel = LOG_INFO;
+13 -8
View File
@@ -1,15 +1,18 @@
#include "stdio.h"
#include "string.h"
#include "unistd.h"
#include "openssl/bio.h"
#include "openssl/ssl.h"
#include "openssl/err.h"
#ifndef __SHAIRPORT_H__
#define __SHAIRPORT_H__
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <openssl/bio.h>
#include <openssl/ssl.h>
#include <openssl/err.h>
#include "socketlib.h"
#include "regex.h"
#include <regex.h>
#include <sys/types.h>
#include <regex.h>
#define DONT_USE_HAIRTUNES_MAIN
#define HWID_SIZE 6
#define SHAIRPORT_LOG 1
#define LOG_INFO 1
@@ -77,3 +80,5 @@ int buildAppleResponse(struct connection *pConn, char *pIpStr, char *pHwAddr);
void sim(int pLevel, char *pValue1, char *pValue2);
void slog(int pLevel, char *pFormat, ...);
int isLogEnabledFor(int pLevel);
#endif
+1
View File
@@ -10,6 +10,7 @@
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/time.h>
#define MAX_SIZE 8192