Commit 0f1bb73
authored
fuse adaptor: bugfix: Fix function declaration order and header dependency (alibaba#1127)
This PR resolves two critical compilation issues in the FUSE adaptor session loop:
1. Fixed function declaration order for fuse_session_receive_splice overloads
Moved the 3-argument overload definition after the 4-argument version in
session_loop.cpp. Previously caused compilation failure: the 3-arg version called
the undeclared 4-arg function (defined later in the file). No functional change
C purely structural reorganization for correct declaration sequence.
2. Added missing header dependency
Included <liburing.h> in session_loop.h .Ensures header self-containment for
liburing-dependent types used by consumers of this header.Prevents potential
"undefined type" errors in downstream compilation units.1 parent 95ac01b commit 0f1bb73
2 files changed
Lines changed: 9 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | 111 | | |
119 | 112 | | |
120 | 113 | | |
| |||
172 | 165 | | |
173 | 166 | | |
174 | 167 | | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
| |||
0 commit comments