⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 samba-1.9.18p8.semun.patch

📁 tools for dgstation st cuberevo box
💻 PATCH
字号:
I think union semun is not available in C library...below is bits/sem.h...	Hyunwoo Park <parkhw00@dgstation.co.kr>/* The user should define a union like the following to use it for arguments   for `semctl'.   union semun   {     int val;                          <= value for SETVAL     struct semid_ds *buf;             <= buffer for IPC_STAT & IPC_SET     unsigned short int *array;                <= array for GETALL & SETALL     struct seminfo *__buf;            <= buffer for IPC_INFO   };   Previous versions of this file used to define this union but this is   incorrect.  One can test the macro _SEM_SEMUN_UNDEFINED to see whether   one must define the union or not.  */#define _SEM_SEMUN_UNDEFINED   1diff -urN samba-1.9.18p8/source/includes.h samba-1.9.18p8.mod/source/includes.h--- samba-1.9.18p8/source/includes.h	1998-06-13 10:44:19.000000000 +0900+++ samba-1.9.18p8.mod/source/includes.h	2006-02-16 18:34:41.135957744 +0900@@ -1157,9 +1157,13 @@   #ifdef USE_SYSV_IPC+#include <sys/types.h> #include <sys/ipc.h> #include <sys/sem.h> #include <sys/shm.h>+#ifdef _SEM_SEMUN_UNDEFINED+#define NO_SEMUN+#endif #ifdef NO_SEMUN union semun { 	int val;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -