ESP32-C6 WROOM: cannot compile with OneWire

I see that this problem has been earlier reported, but with a different dev board: viewtopic.php?f=97&t=58751&p=237692&hil … 20#p237692

My board is designated as “SparkFun ESP32-C6 WROOM Qwiic Pocket”.

I use Arduino IDE and install library OneWire version 2.3.7. Within the library is an example sketch: DS18x20_Temperature.ino.

the compilation error is:

OneWire_direct_gpio.h:134:17: error: 'GPIO' was not declared in this scope; did you mean 'PI'?
  134 |         return (GPIO.in >> pin) & 0x1;

How can I fix this? Is the board specification for Arduino IDE defective?

I believe it’s the same as the issue https://github.com/PaulStoffregen/OneWi … 1913365932 which looks like can be fixed by either rolling the library back or adding “include” (per the next comment/reply)