Skip to content
This repository has been archived by the owner on May 21, 2019. It is now read-only.

Commit

Permalink
[sanitizer] Attempt to fix Android build.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@200547 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
earthdok committed Jan 31, 2014
1 parent 01b385f commit 9968a9f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions lib/sanitizer_common/sanitizer_common_interceptors_ioctl.inc
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,9 @@ static void ioctl_table_fill() {
_(VT_SENDSIG, NONE, 0);
_(VT_SETMODE, READ, struct_vt_mode_sz);
_(VT_WAITACTIVE, NONE, 0);
#endif

#if SANITIZER_LINUX && !SANITIZER_ANDROID
// <sound/asound.h>. READWRITE is used correctly in this group.
_(SNDRV_HWDEP_IOCTL_PVERSION, WRITE, sizeof(int))
_(SNDRV_HWDEP_IOCTL_INFO, WRITE, struct_snd_hwdep_info_sz)
Expand Down Expand Up @@ -479,9 +481,7 @@ static void ioctl_table_fill() {
_(SNDRV_EMUX_IOCTL_REMOVE_LAST_SAMPLES, NONE, 0)
_(SNDRV_EMUX_IOCTL_MEM_AVAIL, READ, sizeof(int))
_(SNDRV_EMUX_IOCTL_MISC_MODE, READWRITE, struct_snd_emux_misc_mode_sz)
#endif

#if SANITIZER_LINUX && !SANITIZER_ANDROID
// _(SIOCDEVPLIP, WRITE, struct_ifreq_sz); // the same as EQL_ENSLAVE
_(CYGETDEFTHRESH, WRITE, sizeof(int));
_(CYGETDEFTIMEOUT, WRITE, sizeof(int));
Expand Down
5 changes: 2 additions & 3 deletions lib/sanitizer_common/sanitizer_platform_limits_posix.cc
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
#include <sys/sockio.h>
#endif

#if SANITIZER_LINUX
#if SANITIZER_LINUX && !SANITIZER_ANDROID
#include <sound/asound.h>
#include <sound/asound_fm.h>
#include <sound/hdsp.h>
Expand Down Expand Up @@ -825,8 +825,7 @@ namespace __sanitizer {
unsigned IOCTL_TIOCSERGETMULTI = TIOCSERGETMULTI;
unsigned IOCTL_TIOCSERSETMULTI = TIOCSERSETMULTI;
unsigned IOCTL_TIOCSSERIAL = TIOCSSERIAL;
#endif
#if SANITIZER_LINUX

unsigned IOCTL_SNDRV_HWDEP_IOCTL_PVERSION = SNDRV_HWDEP_IOCTL_PVERSION;
unsigned IOCTL_SNDRV_HWDEP_IOCTL_INFO = SNDRV_HWDEP_IOCTL_INFO;
unsigned IOCTL_SNDRV_HWDEP_IOCTL_DSP_STATUS = SNDRV_HWDEP_IOCTL_DSP_STATUS;
Expand Down
3 changes: 1 addition & 2 deletions lib/sanitizer_common/sanitizer_platform_limits_posix.h
Original file line number Diff line number Diff line change
Expand Up @@ -1055,8 +1055,7 @@ namespace __sanitizer {
extern unsigned IOCTL_TIOCSERGETMULTI;
extern unsigned IOCTL_TIOCSERSETMULTI;
extern unsigned IOCTL_TIOCSSERIAL;
#endif
#if SANITIZER_LINUX

extern unsigned IOCTL_SNDRV_HWDEP_IOCTL_PVERSION;
extern unsigned IOCTL_SNDRV_HWDEP_IOCTL_INFO;
extern unsigned IOCTL_SNDRV_HWDEP_IOCTL_DSP_STATUS;
Expand Down

0 comments on commit 9968a9f

Please sign in to comment.