diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-04-06 16:40:47 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-04-06 16:40:47 +0000 |
commit | 4011b03fa6a6a7889efea3451a3a125faa72c7fc (patch) | |
tree | c6a1b2ba8ef824b137cd423a245a8cb1c35a0786 /nuttx/include | |
parent | e888bb3a55e974475a87fee0371f4405ddab696e (diff) | |
download | px4-nuttx-4011b03fa6a6a7889efea3451a3a125faa72c7fc.tar.gz px4-nuttx-4011b03fa6a6a7889efea3451a3a125faa72c7fc.tar.bz2 px4-nuttx-4011b03fa6a6a7889efea3451a3a125faa72c7fc.zip |
Fixes for kernel stub builds
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3473 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include')
-rw-r--r-- | nuttx/include/sys/syscall.h | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/nuttx/include/sys/syscall.h b/nuttx/include/sys/syscall.h index 0e2ed01c7..d1f123bd8 100644 --- a/nuttx/include/sys/syscall.h +++ b/nuttx/include/sys/syscall.h @@ -168,11 +168,15 @@ #if CONFIG_NFILE_DESCRIPTORS > 0 || CONFIG_NSOCKET_DESCRIPTORS > 0 # define SYS_close (__SYS_descriptors+0) # define SYS_ioctl (__SYS_descriptors+1) -# define SYS_poll (__SYS_descriptors+2) -# define SYS_read (__SYS_descriptors+3) -# define SYS_select (__SYS_descriptors+4) -# define SYS_write (__SYS_descriptors+5) -# define __SYS_filedesc (__SYS_descriptors+6) +# define SYS_read (__SYS_descriptors+2) +# define SYS_write (__SYS_descriptors+3) +# ifndef CONFIG_DISABLE_POLL +# define SYS_poll (__SYS_descriptors+4) +# define SYS_select (__SYS_descriptors+5) +# define __SYS_filedesc (__SYS_descriptors+6) +# else +# define __SYS_filedesc (__SYS_descriptors+4) +# endif #else # define __SYS_filedesc __SYS_descriptors #endif @@ -252,16 +256,15 @@ # define SYS_pthread_setschedparam (__SYS_pthread+24) # define SYS_pthread_setschedprio (__SYS_pthread+25) # define SYS_pthread_setspecific (__SYS_pthread+26) -# define SYS_pthread_testcancel (__SYS_pthread+27) -# define SYS_pthread_yield (__SYS_pthread+28) +# define SYS_pthread_yield (__SYS_pthread+27) # ifndef CONFIG_DISABLE_SIGNAL -# define SYS_pthread_cond_timedwait (__SYS_pthread+29) -# define SYS_pthread_kill (__SYS_pthread+30) -# define SYS_pthread_sigmask (__SYS_pthread+31) -# define __SYS_mqueue (__SYS_pthread+32) +# define SYS_pthread_cond_timedwait (__SYS_pthread+28) +# define SYS_pthread_kill (__SYS_pthread+29) +# define SYS_pthread_sigmask (__SYS_pthread+30) +# define __SYS_mqueue (__SYS_pthread+31) # else -# define __SYS_mqueue (__SYS_pthread+29) +# define __SYS_mqueue (__SYS_pthread+28) # endif #else |