nuttx-apps/examples/watched
wangzhi16 132334dc98 examples/watcher: fix compile error.
watched.c:77:21: error: implicit declaration of function 'getpid' [-Werror=implicit-function-declaration]
   77 |   int watched_pid = getpid();
      |                     ^~~~~~
cc1: all warnings being treated as errors
make[2]: *** [/home/work/ssd1/workspace/Vela-Multi-Boards-dev-system-CI/apps/Application.mk:253: watched.c.home.work.ssd1.workspace.Vela-Multi-Boards-dev-system-CI.apps.examples.watched.o] Error 1
make[2]: Target 'all' not remade because of errors.
make[1]: *** [Makefile:52: /home/work/ssd1/workspace/Vela-Multi-Boards-dev-system-CI/apps/examples/watched_all] Error 2
watcher_main.c: In function 'watcher_daemon':
watcher_main.c:195:17: error: implicit declaration of function 'getpid' [-Werror=implicit-function-declaration]
  195 |   watcher_pid = getpid();
      |                 ^~~~~~
watcher_main.c:218:7: error: implicit declaration of function 'pause' [-Werror=implicit-function-declaration]
  218 |       pause();
      |       ^~~~~

Signed-off-by: wangzhi16 <wangzhi16@xiaomi.com>
2026-04-20 15:19:32 +08:00
..
CMakeLists.txt cmake:refine cmake build for apps/examples 2026-04-20 15:11:53 +08:00
Kconfig Merge branch 'dev-merge-github-20230228' into dev 2026-04-20 15:12:39 +08:00
Make.defs Merge remote-tracking branch 'mirtos/master' into dev-upmerge-nuttx-10.1-0507 2026-04-20 14:55:00 +08:00
Makefile driver/sensor: rename /dev/sensor -> /dev/uorb 2026-04-20 15:04:00 +08:00
watched.c examples/watcher: fix compile error. 2026-04-20 15:19:32 +08:00
watched.h Merge remote-tracking branch 'remotes/mirtos/dev-upmerge-nuttx-10.2' into dev 2026-04-20 15:00:02 +08:00
watched_main.c fsutils/examples: Include unistd.h explicitly 2026-04-20 15:07:39 +08:00