fsq0511 wrote:I am trying to using an library using avr/interrupt.h
Apparently, you are attempting to port some code written for an AVR device to the ESP8266. Depending on what the code does, this may be a simple process, it may be very complex, or it may be impossible. In most cases, it will require you to have a deep understanding of both the original target (the AVR chip) and the new target (the ESP8266) and it would be helpful if you had a lot of experience writing code for embedded devices in C/C++. The fact that you needed to ask the question suggests that you are ill prepared to tackle a task of this level of difficulty.
That said, you need to figure out what part of the code uses things defined in avr/interrupt.h. The way to do that is to delete (or comment out) the inclusion of that file and then see what errors are produced. That will give you some hints as to which parts of the code need to be modified and you study those to figure out what is being done on the AVR and then figure out how to do the same or a similar thing on the ESP8266. Again, you may not have the knowledge to do this successfully. If not, you will have to develop that knowledge or hire someone to do it for you.