1. 程式人生 > >error: 'ENOSYS' undeclared (first use in this function)

error: 'ENOSYS' undeclared (first use in this function)

patch declare eno linu net fun spa ror 編譯錯誤

/************************************************************************
 *     error: ‘ENOSYS‘ undeclared (first use in this function)
 * 說明:
 *     編譯mt7601u驅動的時候遇到的編譯錯誤。
 *
 *                                      2017-9-15 深圳 龍華樟坑村 曾劍鋒
 **********************************************************************
*/ 一、參考文檔: [PATCH] of: include errno.h https://lists.gt.net/linux/kernel/1447672 二、解決辦法: include/linux/of.h中添加#include <linux/errno.h>

error: 'ENOSYS' undeclared (first use in this function)