repair the compiler error of the configuration with Seperating compiler or musl lib
This commit is contained in:
@@ -297,6 +297,8 @@ typedef struct
|
||||
#define IOCTRL_CAMERA_SET_EFFECT (28) //set effect
|
||||
#define IOCTRL_CAMERA_SET_EXPOSURE (29) //set auto exposure
|
||||
/*********************shell***********************/
|
||||
|
||||
#ifndef SEPARATE_COMPILE
|
||||
//for int func(int argc, char *agrv[])
|
||||
#define PRIV_SHELL_CMD_MAIN_ATTR (SHELL_CMD_PERMISSION(0) | SHELL_CMD_TYPE(SHELL_TYPE_CMD_MAIN))
|
||||
|
||||
@@ -313,6 +315,15 @@ typedef struct
|
||||
#define PRIV_SHELL_CMD_FUNCTION(_func, _desc, _attr) \
|
||||
SHELL_EXPORT_CMD(_attr, _func, _func, _desc)
|
||||
|
||||
#else
|
||||
//for int func(int argc, char *agrv[])
|
||||
#define PRIV_SHELL_CMD_MAIN_ATTR()
|
||||
|
||||
//for int func(int i, char ch, char *str)
|
||||
#define PRIV_SHELL_CMD_FUNC_ATTR()
|
||||
#define PRIV_SHELL_CMD_FUNCTION(_func, _desc, _attr)
|
||||
|
||||
#endif
|
||||
/**********************mutex**************************/
|
||||
|
||||
int PrivMutexCreate(pthread_mutex_t *p_mutex, const pthread_mutexattr_t *attr);
|
||||
|
||||
@@ -60,6 +60,16 @@ extern "C" {
|
||||
// PTHREAD_SCOPE_SYSTEM,
|
||||
// };
|
||||
|
||||
// #define NULL_PARAM_CHECK(param) \
|
||||
// do \
|
||||
// { \
|
||||
// if(param == NULL) { \
|
||||
// printf("PARAM CHECK FAILED ...%s %d %s is NULL.\n", __func__, __LINE__, #param); \
|
||||
// while(1); \
|
||||
// } \
|
||||
// }while (0)
|
||||
|
||||
|
||||
typedef int pid_t;
|
||||
// typedef int pthread_mutex_t ;
|
||||
|
||||
|
||||
@@ -67,8 +67,8 @@ int pthread_attr_init(pthread_attr_t *attr)
|
||||
int pthread_attr_setschedparam(pthread_attr_t *attr,
|
||||
struct sched_param const *param)
|
||||
{
|
||||
NULL_PARAM_CHECK(attr != NULL);
|
||||
NULL_PARAM_CHECK(param != NULL);
|
||||
// NULL_PARAM_CHECK(attr);
|
||||
// NULL_PARAM_CHECK(param);
|
||||
|
||||
attr->schedparam.sched_priority = param->sched_priority;
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
|
||||
#ifdef SEPARATE_COMPILE
|
||||
|
||||
#include "../../../../../../Ubiquitous/XiZi/arch/kswitch.h"
|
||||
#include "../../../../../../Ubiquitous/XiZi_IIoT/arch/kswitch.h"
|
||||
|
||||
#define TASK_INFO 1
|
||||
#define MEM_INFO 2
|
||||
|
||||
Reference in New Issue
Block a user