Skip to content

Commit

Permalink
Merge pull request cbrake#20 from ffontaine/master
Browse files Browse the repository at this point in the history
linux-serial-test.c: fix missing CMSPAR define on MIPS
  • Loading branch information
cbrake authored Nov 9, 2019
2 parents 5d11b31 + c34767a commit 4dc365c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions linux-serial-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@
#include <linux/serial.h>
#include <errno.h>

/*
* glibc for MIPS has its own bits/termios.h which does not define
* CMSPAR, so we vampirise the value from the generic bits/termios.h
*/
#ifndef CMSPAR
#define CMSPAR 010000000000
#endif

// command line args
int _cl_baud = 0;
char *_cl_port = NULL;
Expand Down

0 comments on commit 4dc365c

Please sign in to comment.