_Gaijin_ is commonly used for non-Asian foreigner. Take a look at how citizens of non-Japanese heritage are treated if you want to understand what the parent comment is referring to.
For example, Korean or Chinese heritage Japanese, or Ainu (indigenous Japanese)