Blame view

buildroot/buildroot-2016.08.1/package/empty/0002-fix-non-thread-build.patch 1.21 KB
6b13f685e   김민수   BSP 최초 추가
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
  empty uses SysV semaphores, so the ifdef is wrong here.
  
  Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
  
  --- empty-0.6.19b.orig/empty.c	2012-09-19 13:24:05.000000000 +0200
  +++ empty-0.6.19b/empty.c	2015-07-09 02:00:09.000000000 +0200
  @@ -179,25 +179,23 @@ int main (int argc, char *argv[]) {
   					   2 - unknown */
   	
   /* semaphores */
  -#ifdef _POSIX_SEMAPHORES
  -	#if defined(__linux__) && defined(__GNU_LIBRARY__) && !defined(_SEM_SEMUN_UNDEFINED)
  -		/* union semun is defined by including <sys/sem.h> */
  -	#else
  -		union semun {
  -			int val;
  -			struct semid_ds *buf;
  -		#ifdef __SVR4
  -			ushort_t	*array;
  -		#endif
  -		#ifdef __hpux__
  -			ushort		*array;
  -		#endif
  -		#ifdef __linux__
  -			unsigned short *array;
  -			struct seminfo *__buf;		/* buffer for IPC_INFO */
  -		#endif
  -		};
  -  	#endif
  +#if defined(__linux__) && defined(__GNU_LIBRARY__) && !defined(_SEM_SEMUN_UNDEFINED)
  +	/* union semun is defined by including <sys/sem.h> */
  +#else
  +	union semun {
  +		int val;
  +		struct semid_ds *buf;
  +	#ifdef __SVR4
  +		ushort_t	*array;
  +	#endif
  +	#ifdef __hpux__
  +		ushort		*array;
  +	#endif
  +	#ifdef __linux__
  +		unsigned short *array;
  +		struct seminfo *__buf;		/* buffer for IPC_INFO */
  +	#endif
  +	};
   #endif
   	union semun semu;