make會讀到一個spca5xx.c檔,這個.c檔我改了兩個include
#incldue <linux/config.h> => #include <linux/autoconf.h>
這個是比較新的核心版本以autoconf.h取代config.h ?
#include <asm/semaphore.h> => #include </usr/include/semaphore.h>
我asm目錄裡沒有semaphore.h這個檔案,是不是另外應該裝個什麼xxx-dev之類的
我想應該是我亂套上一個semaphore.h才衝突的..
/usr/include/semaphore.h 49行附近內容:
43 extern sem_t *sem_open (__const char *__name, int __oflag, ...) __THROW;
44
45 /* Close descriptor for named semaphore SEM. */
46 extern int sem_close (sem_t *__sem) __THROW;
47
48 /* Remove named semaphore NAME. */
49 extern int sem_unlink (__const char *__name) __THROW;
50
51 /* Wait for SEM being posted.
52
53 This function is a cancellation point and therefore not marked with
54 __THROW. */
55 extern int sem_wait (sem_t *__sem);
56
57 #ifdef __USE_XOPEN2K
--
#incldue <linux/config.h> => #include <linux/autoconf.h>
這個是比較新的核心版本以autoconf.h取代config.h ?
#include <asm/semaphore.h> => #include </usr/include/semaphore.h>
我asm目錄裡沒有semaphore.h這個檔案,是不是另外應該裝個什麼xxx-dev之類的
我想應該是我亂套上一個semaphore.h才衝突的..
/usr/include/semaphore.h 49行附近內容:
43 extern sem_t *sem_open (__const char *__name, int __oflag, ...) __THROW;
44
45 /* Close descriptor for named semaphore SEM. */
46 extern int sem_close (sem_t *__sem) __THROW;
47
48 /* Remove named semaphore NAME. */
49 extern int sem_unlink (__const char *__name) __THROW;
50
51 /* Wait for SEM being posted.
52
53 This function is a cancellation point and therefore not marked with
54 __THROW. */
55 extern int sem_wait (sem_t *__sem);
56
57 #ifdef __USE_XOPEN2K
--
All Comments