question about chess openings

I usually try to play the Pirc Defence as black. Anyone can make the moves they want, even if these moves are wrong. Here the game probably went like this:
1- d4 d6
2- c4... and black continued with his moves.
For me, this is a mistake. If white plays 2. c4, I change my defence to Tartakower. Yo cannot go on with the Pirc defence against a d4 opening followed by c4, as if your opponent's moves didn't exist.

Eric, I completely understand your question. I had the same question when I first looked at the KID versus the Pirc. The difference is that the KID starts out 1.d4 Nf6 and the Pirc starts out 1.e4 d6. I think the 1... d6 is to discourage 2.e5, but not sure.
Now the position for black is the same in the Pirc and the KID after the first 4 moves as you've shown above. But the position for white is different in the standard lines. And therefore the play for black is somewhat different in the Pirc vs KID after about the 6th move. In the Pirc for example there is a high likelihood to push the c pawn as soon as is appropriate, to attack white's center. In the KID, it's more often the e pawn.
The king's fortress is the same in both though, as you've observed. So there are a lot of similarities in the characteristics of defending your king, and use of the bishops and knights.
Other's may elaborate further.
I have to take off now. My wife's probably wondering why I'm not in the shower yet. This evening I'll post specific lines if other's haven't. Good topic though :).
Paul


I'm pretty new so check me on this. Others please feel free to elaborate on or correct this.
The first game segment is the Pirc, modern line. Notice the white pawn wall on d4, e4, f4, no c4 as hicetnunc pointed out. Typical also is black's fairly early push of ...c5, in this case 6...c5, to attack white's pawn center. In a few situations black may instead play an initial push of ...e5.
If the game starts with 1.e4, then black plays 1.d6 followed by the setup for black shown in your original post, then black is playing the Pirc. If white isn't aware of the Pirc, or in any event plays 1.e4 followed by moves not in the Pirc main lines, I'd say black is still playing the Pirc. White is just playing someting else against black's Pirc.
The second game segment is the KID, Classical line. (My book calls this the "modern variation of the classical line." I think white's moves 5 and 6 may be transposed depending on which book you read.) Notice white's pawn wall on c4, d4, e4. Also black usually pushes ...e5 pretty early to attack white's center, though may sometimes instead choose an initial challenge for the center with ...c5. If white plays anything other than 1.e4 (often 1.d4) and black sets up the position shown in the origninal post, then black is playing the King's Indian Defense.
For a little more information, my thoughts anyway, you may wish to see the thread Confessions of a beginner looking for an opening repertoire , the post that starts with Amount of opening theory.