spca5xx make錯誤? - Linux

By Vanessa
at 2012-04-30T13:24
at 2012-04-30T13:24
Table of Contents
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
--
Tags:
Linux
All Comments

By Gilbert
at 2012-05-04T17:33
at 2012-05-04T17:33

By Hazel
at 2012-05-04T20:13
at 2012-05-04T20:13

By Margaret
at 2012-05-06T16:18
at 2012-05-06T16:18

By Elvira
at 2012-05-07T03:29
at 2012-05-07T03:29

By Gary
at 2012-05-07T15:05
at 2012-05-07T15:05

By Rae
at 2012-05-10T17:16
at 2012-05-10T17:16

By Bennie
at 2012-05-12T00:45
at 2012-05-12T00:45

By Heather
at 2012-05-16T02:18
at 2012-05-16T02:18

By Oliver
at 2012-05-17T18:14
at 2012-05-17T18:14
Related Posts
spca5xx make錯誤?

By Hazel
at 2012-04-29T23:59
at 2012-04-29T23:59
spca5xx make錯誤?

By Enid
at 2012-04-29T20:40
at 2012-04-29T20:40
裝好 Ubuntu 12.04 LTS 可是沒聲音

By Oliver
at 2012-04-29T19:45
at 2012-04-29T19:45
請問interface name有哪幾種?

By Mia
at 2012-04-29T19:28
at 2012-04-29T19:28
裝好 Ubuntu 12.04 LTS 可是沒聲音

By Margaret
at 2012-04-29T17:39
at 2012-04-29T17:39