Skip to content

Commit 25521a6

Browse files
minwooimkeithbusch
authored andcommitted
README: Fix include file location for plugin
If the CMD_INC_FILE is defined with file name without location, the following error will happen. In file included from plugins/foo/foo-nvme.h:17:0, from plugins/foo/foo-nvme.c:4: ./define_cmd.h:12:34: fatal error: foo-nvme.h: No such file or directory #include CMD_INCLUDE(CMD_INC_FILE) ^ Signed-off-by: Minwoo Im <[email protected]>
1 parent 81bbddc commit 25521a6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ is a basic example on how to start this:
176176
File: foo-plugin.h
177177
```c
178178
#undef CMD_INC_FILE
179-
#define CMD_INC_FILE foo-plugin
179+
#define CMD_INC_FILE plugins/foo/foo-plugin
180180
181181
#if !defined(FOO) || defined(CMD_HEADER_MULTI_READ)
182182
#define FOO

0 commit comments

Comments
 (0)