Skip to content

Commit

Permalink
[droid] move getdelim to match rand_r
Browse files Browse the repository at this point in the history
  • Loading branch information
Cory Fields committed Sep 24, 2012
1 parent 92e2a05 commit f6526b3
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 38 deletions.
1 change: 1 addition & 0 deletions xbmc/android/bionic_supplement/Makefile
@@ -1,4 +1,5 @@
SRCS = rand_r.c SRCS = rand_r.c
SRCS += getdelim.c
LIB = bionic_supplement.a LIB = bionic_supplement.a


include ../../../Makefile.include include ../../../Makefile.include
Expand Down
2 changes: 2 additions & 0 deletions xbmc/android/bionic_supplement/bionic_supplement.h
Expand Up @@ -19,11 +19,13 @@
* *
*/ */


#include <stdio.h>
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif /* __cplusplus */ #endif /* __cplusplus */


int rand_r (unsigned int *seed); int rand_r (unsigned int *seed);
ssize_t getdelim(char **lineptr, size_t *n, int delimiter, FILE *stream);


#ifdef __cplusplus #ifdef __cplusplus
} }
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion xbmc/linux/LinuxTimezone.cpp
Expand Up @@ -21,7 +21,7 @@
#include <time.h> #include <time.h>
#include "system.h" #include "system.h"
#ifdef TARGET_ANDROID #ifdef TARGET_ANDROID
#include "linux/getdelim.h" #include "android/bionic_supplement/bionic_supplement.h"
#endif #endif
#include "PlatformInclude.h" #include "PlatformInclude.h"
#include "LinuxTimezone.h" #include "LinuxTimezone.h"
Expand Down
4 changes: 0 additions & 4 deletions xbmc/linux/Makefile.in
Expand Up @@ -21,10 +21,6 @@ SRCS += OMXClock.cpp
SRCS += OMXCore.cpp SRCS += OMXCore.cpp
endif endif


ifeq (@USE_ANDROID@,1)
SRCS += getdelim.c
endif

LIB = linux.a LIB = linux.a


include @abs_top_srcdir@/Makefile.include include @abs_top_srcdir@/Makefile.include
Expand Down
32 changes: 0 additions & 32 deletions xbmc/linux/getdelim.h

This file was deleted.

2 changes: 1 addition & 1 deletion xbmc/network/linux/NetworkLinux.cpp
Expand Up @@ -28,7 +28,7 @@
#include <linux/sockios.h> #include <linux/sockios.h>
#endif #endif
#ifdef TARGET_ANDROID #ifdef TARGET_ANDROID
#include "linux/getdelim.h" #include "android/bionic_supplement/bionic_supplement.h"
#include "sys/system_properties.h" #include "sys/system_properties.h"
#endif #endif
#include <errno.h> #include <errno.h>
Expand Down

0 comments on commit f6526b3

Please sign in to comment.