Skip to content

drivers: fix includes in rtc.h for MSP430#1073

Merged
OlegHahm merged 1 commit intoRIOT-OS:masterfrom
Kijewski:rtc-sys_time
Apr 30, 2014
Merged

drivers: fix includes in rtc.h for MSP430#1073
OlegHahm merged 1 commit intoRIOT-OS:masterfrom
Kijewski:rtc-sys_time

Conversation

@Kijewski
Copy link
Copy Markdown
Contributor

The comment and the actual guard in rtc.h did not match.
If (as in "implication") the MCU is an MSP, then sys/time.h must be
included, to have time_t, struct timeval, …

Including the header file in any case should be safe, so I dropped the
guard altogether.

The comment and the actual guard in `rtc.h` did not match.
If (as in "implication") the MCU is an MSP, then `sys/time.h` must be
included, to have `time_t`, `struct timeval`, …

Including the header file in any case should be safe, so I dropped the
guard altogether.
@OlegHahm
Copy link
Copy Markdown
Member

I think the issue was that there was not sys/time.h for MSP430.

@Kijewski
Copy link
Copy Markdown
Contributor Author

Dunno, but now there is: https://github.com/RIOT-OS/RIOT/blob/master/cpu/msp430-common/include/sys/time.h

[edit] Oh, and actually you added the stub. :) [/edit]

@OlegHahm
Copy link
Copy Markdown
Member

Ah, thanks for refreshing my memory. In this case: ACK and go!

OlegHahm added a commit that referenced this pull request Apr 30, 2014
drivers: fix includes in rtc.h for MSP430
@OlegHahm OlegHahm merged commit 66712c0 into RIOT-OS:master Apr 30, 2014
@Kijewski Kijewski deleted the rtc-sys_time branch May 3, 2014 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Platform: MSP Platform: This PR/issue effects MSP-based platforms Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants