标签:The end define pes 思路 文件的 linu 报错 sign
admin@xxxx:~$ ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 13140 max locked memory (kbytes, -l) 64 max memory size (kbytes, -m) unlimited open files (-n) 1024 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 8192000 real-time priority (-r) 0 stack size (kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes (-u) 13140 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited
fcntl(p_pipeline->pipes[1], F_SETPIPE_SZ, 131072);
#include <sys/types.h> #include <unistd.h> #include <fcntl.h>
error: ‘F_SETPIPE_SZ‘ undeclared (first use in this function)
在源文件的所有h文件之前,加入下面的宏定义。
#define _GNU_SOURCE
这下就能编译通过了。
标签:The end define pes 思路 文件的 linu 报错 sign
原文地址:https://www.cnblogs.com/djw316/p/10187352.html