Skip to content

Commit 15147d2

Browse files
committed
Fix kendwood_priv_data definition
When compiling Hamlib 4.6 on Alpine Linux, the build fails with the following error message: kenwood.h:186:5: error: unknown type name 'mode_t'; did you mean 'rmode_t'? According to the man page for mode_t (on Debian), the standard C library provides this type and it is an integer type. The struct member last_mode_pc is compared with curr_mode which has type rmode_t so this commit updates the definition to use this type. With this change, Hamlib 4.6 builds successfully on Alpine Linux 3.21.0.
1 parent c9031ca commit 15147d2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rigs/kenwood/kenwood.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ struct kenwood_priv_data
183183
int save_k2_ext_lvl; // so we can restore to original
184184
int save_k3_ext_lvl; // so we can restore to original -- for future use if needed
185185
int voice_bank; /* last voice bank send for use by stop_voice_mem */
186-
mode_t last_mode_pc; // last mode memory for PC command
186+
rmode_t last_mode_pc; // last mode memory for PC command
187187
int power_now,power_min,power_max;
188188
};
189189

0 commit comments

Comments
 (0)