I've run into this a couple of times when trying to use libraries written for Arduino on a particle photon. Many have the line:
#include <pins_arduino.h>
which returns the error on the photon compiler:
fatal error: pins_arduino.h: No such file or directory
I had similar trouble with:
#include <WProgram.h>
and found an easy fix was to replace that with
#include "application.h"
I'm wondering if there's a similar easy fix for pins_arduino?